Navigation Menu

Skip to content

Commit

Permalink
merge r17016 from branch 2.4 to trunk
Browse files Browse the repository at this point in the history
bug 2706 fixed: pwg.getMissingDerivatives correctly manages galleries with not a single photo.



git-svn-id: http://piwigo.org/svn/trunk@17017 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Jul 25, 2012
1 parent 6c2fad0 commit 1e1c2d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/ws_functions.inc.php
Expand Up @@ -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)
{
Expand Down

0 comments on commit 1e1c2d4

Please sign in to comment.