summaryrefslogtreecommitdiffstats
path: root/image.php
diff options
context:
space:
mode:
authorspocky <spocky@ampache>2007-09-19 18:01:18 +0000
committerspocky <spocky@ampache>2007-09-19 18:01:18 +0000
commit85133012f22cbaf995850d1c203d4422942c13ae (patch)
treefd10a387ec54ce4179a8be4c001328c4a9aaa086 /image.php
parent88562955f9c96d8d347acc8c12cdf33adab04f94 (diff)
downloadampache-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.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/image.php b/image.php
index 08219287..62230d38 100644
--- a/image.php
+++ b/image.php
@@ -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'])) {