]> git.mxchange.org Git - friendica.git/blobdiff - mod/photo.php
Merge pull request #50 from annando/master
[friendica.git] / 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()) {