mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
parent
be63364aa6
commit
7cc18dded4
1 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue