is not always defined; but if defined, then always of type integer
This commit is contained in:
parent
cbc6ca642a
commit
b102a1d5ec
@ -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()) {
|
||||||
|
Reference in New Issue
Block a user