From 720c8324c7572ebf51e4083430e060900cb30750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20H=C3=B6=C3=9Fl?= Date: Tue, 17 Apr 2012 11:33:50 +0000 Subject: Some Bugfixes, and variable checks --- mod/photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/photo.php') diff --git a/mod/photo.php b/mod/photo.php index ec53af899..1d38fe8e4 100644 --- a/mod/photo.php +++ b/mod/photo.php @@ -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')) { -- cgit v1.2.3