diff options
author | Friendika <info@friendika.com> | 2010-11-07 15:46:49 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-11-07 15:46:49 -0800 |
commit | d825db36497b1af43f0f58134702665f1ac1ab55 (patch) | |
tree | e20761e32c33e3cd392e8e104456c87641657154 /mod/photo.php | |
parent | 82d9783c35f4724488d6f5e98aac955b9e3b53f6 (diff) | |
download | volse-hubzilla-d825db36497b1af43f0f58134702665f1ac1ab55.tar.gz volse-hubzilla-d825db36497b1af43f0f58134702665f1ac1ab55.tar.bz2 volse-hubzilla-d825db36497b1af43f0f58134702665f1ac1ab55.zip |
lint
Diffstat (limited to 'mod/photo.php')
-rw-r--r-- | mod/photo.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/mod/photo.php b/mod/photo.php index d4abb041a..7f13d1cbf 100644 --- a/mod/photo.php +++ b/mod/photo.php @@ -13,7 +13,7 @@ function photo_init(&$a) { case 1: default: killme(); - return; // NOTREACHED + // NOTREACHED } $default = 'images/default-profile.jpg'; @@ -111,15 +111,13 @@ function photo_init(&$a) { } } - if(x($data) === false) { + if(! isset($data)) { killme(); - return; // NOTREACHED + // NOTREACHED } - header("Content-type: image/jpeg"); - header('Expires: ' . datetime_convert('UTC','UTC', 'now + 3 months', 'D, d M Y H:i:s' . ' GMT')); -// header("Cache-Control: max-age=36000, only-if-cached"); - echo $data; + header("Content-type: image/jpeg"); + echo $data; killme(); - return; //NOTREACHED + // NOTREACHED }
\ No newline at end of file |