Changeset 1651 for trunk/include/category_cats.inc.php
- Timestamp:
- Dec 13, 2006, 1:05:16 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_cats.inc.php
r1648 r1651 56 56 WHERE id_uppercat '. 57 57 (!isset($page['category']) ? 'is NULL' : '= '.$page['category']); 58 if ($page['filter_ mode'])58 if ($page['filter_local_mode']) 59 59 { 60 60 $query.= ' … … 86 86 FROM '.CATEGORIES_TABLE.' AS c INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic 87 87 ON ic.category_id = c.id'; 88 if ($page['filter_ mode'])88 if ($page['filter_local_mode'] or $user['filter_global_mode']) 89 89 { 90 90 $query.= ' … … 94 94 WHERE uppercats REGEXP \'(^|,)'.$row['id'].'(,|$)\' 95 95 AND c.id NOT IN ('.$user['forbidden_categories'].')'; 96 if ($page['filter_ mode'])96 if ($page['filter_local_mode'] or $user['filter_global_mode']) 97 97 { 98 98 $query.= ' … … 118 118 WHERE uppercats REGEXP \'(^|,)'.$row['id'].'(,|$)\' 119 119 AND representative_picture_id IS NOT NULL'; 120 if ($page['filter_ mode'])120 if ($page['filter_local_mode'] or $user['filter_global_mode']) 121 121 { 122 122 $query.= '
Note: See TracChangeset
for help on using the changeset viewer.