aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Hößl <tobias@hoessl.eu>2012-02-26 20:43:23 +0000
committerTobias Hößl <tobias@hoessl.eu>2012-02-26 20:43:23 +0000
commitb102a1d5ecda36a9a48a841f06df9ef5d33fa46a (patch)
tree0c4383495cd6cd896068ab9e43636fbcc74c047f
parentcbc6ca642a15d077e66e5cf9fe89a16521b3e6c4 (diff)
downloadvolse-hubzilla-b102a1d5ecda36a9a48a841f06df9ef5d33fa46a.tar.gz
volse-hubzilla-b102a1d5ecda36a9a48a841f06df9ef5d33fa46a.tar.bz2
volse-hubzilla-b102a1d5ecda36a9a48a841f06df9ef5d33fa46a.zip
is not always defined; but if defined, then always of type integer
-rwxr-xr-xmod/photo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/photo.php b/mod/photo.php
index a5a5a1dc1..c4a93769a 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()) {