]> git.mxchange.org Git - friendica.git/blobdiff - mod/photo.php
declare key size/algorithm to ensure key gets generated
[friendica.git] / mod / photo.php
index d4abb041a0db95981aa7d31852880437ee2b0990..7f13d1cbf83db67d765ccf3d6c527f2b81bd9c1c 100644 (file)
@@ -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