diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-05 03:32:38 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-05 03:32:38 +0000 |
commit | d24fe88905baf183892ed9fd757e698e56309904 (patch) | |
tree | 0861389b8de13f06bce0fa4c13299b83fba00ae7 /lib/class/album.class.php | |
parent | 9457b75fb16f05347c08b484db6fe2b848efba15 (diff) | |
download | ampache-d24fe88905baf183892ed9fd757e698e56309904.tar.gz ampache-d24fe88905baf183892ed9fd757e698e56309904.tar.bz2 ampache-d24fe88905baf183892ed9fd757e698e56309904.zip |
fixed update from tags for artist and album and fixed clear album art
Diffstat (limited to 'lib/class/album.class.php')
-rw-r--r-- | lib/class/album.class.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/class/album.class.php b/lib/class/album.class.php index af9cadb8..f03a1990 100644 --- a/lib/class/album.class.php +++ b/lib/class/album.class.php @@ -618,14 +618,14 @@ class Album { } // get_random_songs - /*! - @function clear_art - @discussion clears the album art from the DB - */ - function clear_art() { + /** + * clear_art + * clears the album art from the DB + */ + public function clear_art() { - $sql = "UPDATE album SET art=NULL, art_mime=NULL WHERE id='$this->id'"; - $db_results = mysql_query($sql, dbh()); + $sql = "UPDATE `album_data` SET `art`=NULL, `art_mime`=NULL, `thumb`=NULL, `thumb_mime`=NULL WHERE `album_id`='$this->id'"; + $db_results = Dba::query($sql); } // clear_art |