projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a4e979
)
Fix for 'Undefined index: content_type'
author
Roland Häder
<roland@mxchange.org>
Sun, 22 Nov 2009 19:46:06 +0000
(19:46 +0000)
committer
Roland Häder
<roland@mxchange.org>
Sun, 22 Nov 2009 19:46:06 +0000
(19:46 +0000)
view.php
patch
|
blob
|
history
diff --git
a/view.php
b/view.php
index 1bfd84b869ef355154c089de42644d97427d7a50..92d3a58e7b3527db2b7cc0624ccfcbe3823c87d7 100644
(file)
--- 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 ...
- se
ndHeader('Content-Type: image/' . $type
);
+ se
tContentType('image/' . substr($url, -3, 3)
);
// Redirect
redirectToUrl($url, false);