diff options
author | spocky <spocky@ampache> | 2007-09-19 18:01:18 +0000 |
---|---|---|
committer | spocky <spocky@ampache> | 2007-09-19 18:01:18 +0000 |
commit | 85133012f22cbaf995850d1c203d4422942c13ae (patch) | |
tree | fd10a387ec54ce4179a8be4c001328c4a9aaa086 /image.php | |
parent | 88562955f9c96d8d347acc8c12cdf33adab04f94 (diff) | |
download | ampache-85133012f22cbaf995850d1c203d4422942c13ae.tar.gz ampache-85133012f22cbaf995850d1c203d4422942c13ae.tar.bz2 ampache-85133012f22cbaf995850d1c203d4422942c13ae.zip |
Fixed image mime type not being sent correctly
Diffstat (limited to 'image.php')
-rw-r--r-- | image.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -71,15 +71,16 @@ switch ($_REQUEST['type']) { // Attempt to pull art from the database $art = $album->get_art(); + $mime = $art['mime']; - if (!$art['mime']) { + if (!$mime) { header('Content-type: image/gif'); readfile(Config::get('prefix') . Config::get('theme_path') . '/images/blankalbum.gif'); break; } // else no image // Print the album art - $data = explode("/",$art['mime']); + $data = explode("/",$mime); $extension = $data['1']; if (empty($_REQUEST['thumb'])) { |