]> git.mxchange.org Git - friendica.git/blobdiff - mod/photo.php
Some Bugfixes, and variable checks
[friendica.git] / mod / photo.php
index ec53af899625e854048b9a0765ce1899a54a6c70..1d38fe8e45189c67ccc7f572a881763453e0f67a 100644 (file)
@@ -170,7 +170,7 @@ function photo_init(&$a) {
        }
 
        // Writing in cachefile
-       if ($cachefile != '')
+       if (isset($cachefile) && $cachefile != '')
                file_put_contents($cachefile, $data);
 
        if(function_exists('header_remove')) {