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

View file

@ -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()) {