From 2c21726d0f70357059d7c6ca75d5dec3e38d879b Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Wed, 8 Feb 2006 21:22:36 +0000 Subject: fixed unescaped and incorrectly named id var --- lib/class/artist.class.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/class/artist.class.php b/lib/class/artist.class.php index 173fe884..1b96b0aa 100644 --- a/lib/class/artist.class.php +++ b/lib/class/artist.class.php @@ -35,16 +35,17 @@ class Artist { /*! @function Artist - @discussion Song class, for modifing a song. - @param $song_id The ID of the song + @discussion Artist class, for modifing a artist + @param $artist_id The ID of the artist */ - function Artist($song_id = 0) { + function Artist($artist_id = 0) { + /* If we have passed an id then do something */ - if ($song_id) { + if ($artist_id) { /* Assign id for use in get_info() */ - $this->id = $song_id; + $this->id = intval($artist_id); /* Get the information from the db */ if ($info = $this->get_info()) { @@ -54,11 +55,10 @@ class Artist { $this->prefix = $info->prefix; } // if info - } // if song_id + } // if artist_id } //constructor - /*! @function get_info @discussion get's the vars for $this out of the database -- cgit