Changeset 23374


Ignore:
Timestamp:
Jun 19, 2013, 9:35:41 PM (8 years ago)
Author:
mistic100
Message:

fix SQL fatal error when there is no photos in the [slider] album

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ExtendedDescription/main.inc.php

    r22203 r23374  
    633633;';
    634634    $ids = array_from_query($query, 'image_id');
     635    if (empty($ids))
     636    {
     637      return '(nivoSlider) no photos in album #'.$params['album'];
     638    }
    635639    $ids = implode(',', $ids);
    636640  }
     
    638642  else if (empty($params['list']))
    639643  {
    640     return 'missing album id or empty picture list';
     644    return '(nivoSlider) missing album id or photos list';
    641645  }
    642646  else
Note: See TracChangeset for help on using the changeset viewer.