summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-02-08 21:22:36 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-02-08 21:22:36 +0000
commit2c21726d0f70357059d7c6ca75d5dec3e38d879b (patch)
tree4f16752b2a6e3b703813691b9adb253052ba86c5
parent8679aaa5430a86dbf437410f27766268c4a6c8df (diff)
downloadampache-2c21726d0f70357059d7c6ca75d5dec3e38d879b.tar.gz
ampache-2c21726d0f70357059d7c6ca75d5dec3e38d879b.tar.bz2
ampache-2c21726d0f70357059d7c6ca75d5dec3e38d879b.zip
fixed unescaped and incorrectly named id var
-rw-r--r--lib/class/artist.class.php14
1 files 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