Changeset 17016


Ignore:
Timestamp:
Jul 25, 2012, 5:13:02 PM (8 years ago)
Author:
plg
Message:

bug 2706 fixed: pwg.getMissingDerivatives correctly manages galleries with not a single photo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/include/ws_functions.inc.php

    r15852 r17016  
    206206
    207207  list($max_id, $image_count) = pwg_db_fetch_row( pwg_query('SELECT MAX(id)+1, COUNT(*) FROM '.IMAGES_TABLE) );
     208
     209  if (0 == $image_count)
     210  {
     211    return array();
     212  }
     213
    208214  $start_id = intval($params['prev_page']);
    209215  if ($start_id<=0)
Note: See TracChangeset for help on using the changeset viewer.