diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-12-18 09:30:39 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-12-18 09:30:39 +0000 |
commit | 64df5b62139b5bb247c9e902b3838985b3ab4c1d (patch) | |
tree | 7681db7f02e698a8c6bfa5a1587aa77e1d83c7ba /lib/class/artist.class.php | |
parent | 0154f3736070c0847c5912dca88954b6bebe6001 (diff) | |
download | ampache-64df5b62139b5bb247c9e902b3838985b3ab4c1d.tar.gz ampache-64df5b62139b5bb247c9e902b3838985b3ab4c1d.tar.bz2 ampache-64df5b62139b5bb247c9e902b3838985b3ab4c1d.zip |
added keyword search and fixes up search a bunch thx rubin
Diffstat (limited to 'lib/class/artist.class.php')
-rw-r--r-- | lib/class/artist.class.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/class/artist.class.php b/lib/class/artist.class.php index 534281d6..5f9267b3 100644 --- a/lib/class/artist.class.php +++ b/lib/class/artist.class.php @@ -234,10 +234,7 @@ class Artist { $check_exists_qstring = "SELECT name FROM artist WHERE id='" . sql_escape($newid) . "'"; $check_exists_query = mysql_query($check_exists_qstring, dbh()); - if (mysql_num_rows($check_exists_query)) { - - // Get the name, for use in output - $check_exists_result = mysql_fetch_assoc($check_exists_query); + if ($check_exists_results = mysql_fetch_assoc($check_exists_query)) { $NewName = $check_exists_result['name']; @@ -246,19 +243,16 @@ class Artist { "WHERE artist='" . sql_escape($this->id) . "'"; $db_results = mysql_query($sql, dbh()); - $num_stats_changed = $catalog->merge_stats("artist",$this->id,$newid); + $num_stats_changed = $catalog->merge_stats('artist',$this->id,$newid); - /* If we've done the merege we need to clean up + /* If we've done the merege we need to clean up */ $catalog->clean_artists(); $catalog->clean_albums(); - } - else { $GLOBALS['error']->add_error('general',"Error: Invalid Artist ID"); return false; } - } // merge |