diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-07-15 14:46:30 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-07-15 14:46:30 +0000 |
commit | fdda5d1480469fd38bc0d4428ec3aa87d73e6fbd (patch) | |
tree | dee0d4700d4263d17e0505551c7acf5240040947 /lib/class | |
parent | 50d7a8b7f32fa597823c54be730cbce6d44d2af7 (diff) | |
download | ampache-fdda5d1480469fd38bc0d4428ec3aa87d73e6fbd.tar.gz ampache-fdda5d1480469fd38bc0d4428ec3aa87d73e6fbd.tar.bz2 ampache-fdda5d1480469fd38bc0d4428ec3aa87d73e6fbd.zip |
fixed the albums/artists I broke a few revs ago and sync of the download stats fix from branch
Diffstat (limited to 'lib/class')
-rw-r--r-- | lib/class/album.class.php | 6 | ||||
-rw-r--r-- | lib/class/artist.class.php | 5 |
2 files changed, 2 insertions, 9 deletions
diff --git a/lib/class/album.class.php b/lib/class/album.class.php index 184842b6..55eff015 100644 --- a/lib/class/album.class.php +++ b/lib/class/album.class.php @@ -54,12 +54,8 @@ class Album extends database_object { if (!$id) { return false; } - - /* Assign id for use in get_info() */ - $this->id = intval($id); - /* Get the information from the db */ - $info = $this->get_info(); + $info = $this->get_info($id); // Foreach what we've got foreach ($info as $key=>$value) { diff --git a/lib/class/artist.class.php b/lib/class/artist.class.php index f55fd999..64160d35 100644 --- a/lib/class/artist.class.php +++ b/lib/class/artist.class.php @@ -44,11 +44,8 @@ class Artist extends database_object { /* If they failed to pass in an id, just run for it */ if (!$id) { return false; } - /* Assign id for use in get_info() */ - $this->id = intval($id); - /* Get the information from the db */ - $info = $this->get_info(); + $info = $this->get_info($id); foreach ($info as $key=>$value) { $this->$key = $value; |