]> git.mxchange.org Git - friendica.git/commitdiff
is not always defined; but if defined, then always of type integer
authorTobias Hößl <tobias@hoessl.eu>
Sun, 26 Feb 2012 20:43:23 +0000 (20:43 +0000)
committerTobias Hößl <tobias@hoessl.eu>
Sun, 26 Feb 2012 20:43:23 +0000 (20:43 +0000)
mod/photo.php

index a5a5a1dc174fb05ecb1a7e9bc64b527aed58b5eb..c4a93769af8d99a0944c5a1186e053a1507137c3 100755 (executable)
@@ -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()) {