is not always defined; but if defined, then always of type integer
This commit is contained in:
parent
cbc6ca642a
commit
b102a1d5ec
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in a new issue