diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-27 04:00:02 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-27 04:00:02 +0000 |
commit | 14f9a27ffb0dfb99ae6badfdad00ed66b0f4d374 (patch) | |
tree | 3e41b24245edcd2aafe8789f9fb345a89f725b74 /lib/class/album.class.php | |
parent | bb372c24ff948c7b3e8c0c10f56ae55349fadd4f (diff) | |
download | ampache-14f9a27ffb0dfb99ae6badfdad00ed66b0f4d374.tar.gz ampache-14f9a27ffb0dfb99ae6badfdad00ed66b0f4d374.tar.bz2 ampache-14f9a27ffb0dfb99ae6badfdad00ed66b0f4d374.zip |
updated sql, and a db album art method fix
Diffstat (limited to 'lib/class/album.class.php')
-rw-r--r-- | lib/class/album.class.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/class/album.class.php b/lib/class/album.class.php index 440722cd..afa96df3 100644 --- a/lib/class/album.class.php +++ b/lib/class/album.class.php @@ -379,7 +379,9 @@ class Album { $sql = "SELECT art,art_mime FROM album WHERE id='$this->id' AND art_mime IS NOT NULL"; $db_results = mysql_query($sql, dbh()); - $results = mysql_fetch_object($db_results); + $results = mysql_fetch_assoc($db_results); + + if (!$results['art']) { return array(); } return $results; |