summaryrefslogtreecommitdiffstats
path: root/lib/class
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class')
-rw-r--r--lib/class/album.class.php6
-rw-r--r--lib/class/artist.class.php5
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;