Changeset 22879 for trunk/include/category_cats.inc.php
- Timestamp:
- May 26, 2013, 9:56:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_cats.inc.php
r21802 r22879 38 38 max_date_last, 39 39 count_images, 40 nb_categories, 40 41 count_categories 41 42 FROM '.CATEGORIES_TABLE.' c … … 120 121 if ($conf['representative_cache_on_subcats'] and $row['user_representative_picture_id'] != $image_id) 121 122 { 122 $user_representative_updates_for[ $ user['id'].'#'.$row['id'] ] = $image_id;123 $user_representative_updates_for[ $row['id'] ] = $image_id; 123 124 } 124 125 … … 212 213 if ($conf['representative_cache_on_level']) 213 214 { 214 $user_representative_updates_for[ $ user['id'].'#'.$category['id'] ] = $image_id;215 $user_representative_updates_for[ $category['id'] ] = $image_id; 215 216 } 216 217 … … 247 248 $updates = array(); 248 249 249 foreach ($user_representative_updates_for as $user_cat => $image_id) 250 { 251 list($user_id, $cat_id) = explode('#', $user_cat); 252 253 array_push( 254 $updates, 250 foreach ($user_representative_updates_for as $cat_id => $image_id) 251 { 252 $updates[] = 255 253 array( 256 'user_id' => $user _id,254 'user_id' => $user['id'], 257 255 'cat_id' => $cat_id, 258 256 'user_representative_picture_id' => $image_id, 259 ) 260 ); 257 ); 261 258 } 262 259
Note: See TracChangeset
for help on using the changeset viewer.