Changeset 17982 for branches/2.4/admin/include/functions.php
- Timestamp:
- Sep 18, 2012, 1:46:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/admin/include/functions.php
r17981 r17982 1603 1603 JOIN '.IMAGES_TABLE.' ON image_id=id 1604 1604 WHERE id IN ('.implode(',', $images).') 1605 '.((is_array($categories) and count($categories)>0) ? 'AND category_id NOT IN ('.implode(',', $categories).')' : null).' 1605 '; 1606 1607 if (is_array($categories) and count($categories) > 0) 1608 { 1609 $query.= ' 1610 AND category_id NOT IN ('.implode(',', $categories).') 1611 '; 1612 } 1613 1614 $query.= ' 1606 1615 AND (storage_category_id IS NULL OR storage_category_id != category_id) 1607 1616 ;';
Note: See TracChangeset
for help on using the changeset viewer.