Changeset 11290 for extensions/SmartAlbums/include/count_images.php
- Timestamp:
- Jun 10, 2011, 11:02:04 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmartAlbums/include/count_images.php
r10980 r11290 10 10 include_once(SMART_PATH.'include/functions.inc.php'); 11 11 12 $filters = array(); 13 $limit_is_set = false; 14 foreach ($_POST['filters'] as $filter) 12 if (isset($_POST['filters'])) 15 13 { 16 if (($filter = smart_check_filter($filter)) != false) 14 $filters = array(); 15 $limit_is_set = false; 16 foreach ($_POST['filters'] as $filter) 17 17 { 18 array_push($filters, $filter); 18 if (($filter = smart_check_filter($filter)) != false) 19 { 20 array_push($filters, $filter); 21 } 19 22 } 23 24 $associated_images = smart_get_pictures($_POST['cat_id'], $filters); 25 } 26 else 27 { 28 $associated_images = array(); 20 29 } 21 30 22 $associated_images = smart_get_pictures($_POST['cat_id'], $filters);23 31 echo l10n_dec('%d photo', '%d photos', count($associated_images)); 24 32
Note: See TracChangeset
for help on using the changeset viewer.