Changeset 17017


Ignore:
Timestamp:
07/25/12 17:14:04 (7 years ago)
Author:
plg
Message:

merge r17016 from branch 2.4 to trunk

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions.inc.php

    r15852 r17017  
    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.