From 8137108a87fff1468dce3c7590bc1f1dbb418ce8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 22 Nov 2009 19:46:06 +0000 Subject: [PATCH] Fix for 'Undefined index: content_type' --- view.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/view.php b/view.php index 1bfd84b869..92d3a58e7b 100644 --- a/view.php +++ b/view.php @@ -60,11 +60,8 @@ if (((isGetRequestElementSet('user')) || (isGetRequestElementSet('reseller'))) & SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refbanner` SET `counter`=`counter`+1 WHERE `id`=%s LIMIT 1", array(bigintval(getRequestElement('banner'))), __FILE__, __LINE__); - // Extract type (last 3 chars should be okay) - $type = substr($url, -3); - // Set header and ... - sendHeader('Content-Type: image/' . $type); + setContentType('image/' . substr($url, -3, 3)); // Redirect redirectToUrl($url, false); -- 2.39.5