summaryrefslogtreecommitdiffstats
path: root/image.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-07 20:35:49 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-07 20:35:49 +0000
commitb6cfe134badb2d4393e9081b13b2dfca011ed736 (patch)
tree4f6213e626fa90b4b280b5e663e791559c4a7f8f /image.php
parent90d2acbc54b24b6e8207e12f1cabcbc7541ca447 (diff)
downloadampache-b6cfe134badb2d4393e9081b13b2dfca011ed736.tar.gz
ampache-b6cfe134badb2d4393e9081b13b2dfca011ed736.tar.bz2
ampache-b6cfe134badb2d4393e9081b13b2dfca011ed736.zip
* Re-worked Main page of Ampache, adding Album of the moment.
* Moved stats to /stats.php page * Fixed logic error in resize that could cause nothign to display if resize was on, but it still failed * Fixed Upload Album art from Find Album Art * Added Menu to the TV page * Fixed logic error that showed localplay if user had access regardless of global config * Changed default action of browse.php to song browse
Diffstat (limited to 'image.php')
-rw-r--r--image.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/image.php b/image.php
index 415c728c..41e35c9a 100644
--- a/image.php
+++ b/image.php
@@ -59,7 +59,6 @@ switch ($_REQUEST['type']) {
$image = get_image_from_source($_SESSION['form']['images'][$key]);
$mime = $_SESSION['form']['images'][$key]['mime'];
-
$data = explode("/",$mime);
$extension = $data['1'];
@@ -88,11 +87,11 @@ switch ($_REQUEST['type']) {
$extension = $data['1'];
header("Content-type: $mime");
header("Content-Disposition: filename=" . $album->name . "." . $extension);
- if (!$_REQUEST['thumb']) {
+ if (empty($_REQUEST['thumb'])) {
echo $art;
}
elseif (!img_resize($art,$size,$extension)) {
- echo $art;
+ echo $art;
}
break;
} // end switch type