summaryrefslogtreecommitdiffstats
path: root/lib/class/album.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-05 03:32:38 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-05 03:32:38 +0000
commitd24fe88905baf183892ed9fd757e698e56309904 (patch)
tree0861389b8de13f06bce0fa4c13299b83fba00ae7 /lib/class/album.class.php
parent9457b75fb16f05347c08b484db6fe2b848efba15 (diff)
downloadampache-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.php14
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