Changeset 2327 for trunk/include/category_cats.inc.php
- Timestamp:
- May 3, 2008, 3:52:08 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_cats.inc.php
r2299 r2327 55 55 $query = ' 56 56 SELECT 57 id, name, permalink, representative_picture_id, comment, nb_images, 57 id, name, permalink, representative_picture_id, comment, nb_images, uppercats, 58 58 date_last, max_date_last, count_images, count_categories 59 59 FROM '.CATEGORIES_TABLE.' INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.' … … 94 94 ON ic.category_id = c.id'; 95 95 $query.= ' 96 WHERE uppercats REGEXP \'(^|,)'.$row['id'].'(,|$)\'97 '.get_sql_condition_FandF96 WHERE uppercats LIKE \''.$row['uppercats'].',%\'' 97 .get_sql_condition_FandF 98 98 ( 99 99 array … … 103 103 'visible_images' => 'image_id' 104 104 ), 105 'AND'105 "\n AND" 106 106 ).' 107 107 ORDER BY RAND() … … 120 120 FROM '.CATEGORIES_TABLE.' INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.' 121 121 ON id = cat_id and user_id = '.$user['id'].' 122 WHERE uppercats REGEXP \'(^|,)'.$row['id'].'(,|$)\'123 AND representative_picture_id IS NOT NULL 124 '.get_sql_condition_FandF122 WHERE uppercats LIKE \''.$row['uppercats'].',%\' 123 AND representative_picture_id IS NOT NULL' 124 .get_sql_condition_FandF 125 125 ( 126 126 array … … 128 128 'visible_categories' => 'id', 129 129 ), 130 'AND'130 "\n AND" 131 131 ).' 132 132 ORDER BY RAND()
Note: See TracChangeset
for help on using the changeset viewer.