From: Tobias Hößl Date: Sun, 26 Feb 2012 20:43:23 +0000 (+0000) Subject: is not always defined; but if defined, then always of type integer X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b102a1d5ecda36a9a48a841f06df9ef5d33fa46a;p=friendica.git is not always defined; but if defined, then always of type integer --- diff --git a/mod/photo.php b/mod/photo.php index a5a5a1dc17..c4a93769af 100755 --- a/mod/photo.php +++ b/mod/photo.php @@ -119,7 +119,7 @@ function photo_init(&$a) { // NOTREACHED } - if(intval($customres) && $customres > 0 && $customres < 500) { + if(isset($customres) && $customres > 0 && $customres < 500) { require_once('include/Photo.php'); $ph = new Photo($data); if($ph->is_valid()) {