Browse Source

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

pull/49/head
Tobias Hößl 11 years ago
parent
commit
b102a1d5ec
  1. 2
      mod/photo.php

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

Loading…
Cancel
Save