mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
bug 2706 fixed: pwg.getMissingDerivatives correctly manages galleries with not a single photo.
git-svn-id: http://piwigo.org/svn/branches/2.4@17016 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -205,6 +205,12 @@ function ws_getMissingDerivatives($params, &$service)
|
||||
}
|
||||
|
||||
list($max_id, $image_count) = pwg_db_fetch_row( pwg_query('SELECT MAX(id)+1, COUNT(*) FROM '.IMAGES_TABLE) );
|
||||
|
||||
if (0 == $image_count)
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
$start_id = intval($params['prev_page']);
|
||||
if ($start_id<=0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user