is not always defined; but if defined, then always of type integer

This commit is contained in:
Tobias Hößl 2012-02-26 20:43:23 +00:00
parent cbc6ca642a
commit b102a1d5ec
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ function photo_init(&$a) {
// NOTREACHED // NOTREACHED
} }
if(intval($customres) && $customres > 0 && $customres < 500) { if(isset($customres) && $customres > 0 && $customres < 500) {
require_once('include/Photo.php'); require_once('include/Photo.php');
$ph = new Photo($data); $ph = new Photo($data);
if($ph->is_valid()) { if($ph->is_valid()) {