diff --git a/picture.php b/picture.php index d7adab8c4..df5d78c9d 100644 --- a/picture.php +++ b/picture.php @@ -30,7 +30,7 @@ if ( !isset($page['rank_of'][$page['image_id']]) ) SELECT id, file, level FROM '.IMAGES_TABLE.' WHERE '; - if ($page['image_id']>0) + if (is_int($page['image_id'])) { $query .= 'id = '.$page['image_id']; } @@ -1044,4 +1044,4 @@ else //------------------------------------------------------------ log informations pwg_log($picture['current']['id'], 'picture'); include(PHPWG_ROOT_PATH.'include/page_tail.php'); -?> \ No newline at end of file +?>