Changeset 2448 for trunk/include/functions_user.inc.php
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 local2 gal23 feed.xml4 testmail5 phpmv26 1 map.php 7 2 upgrade65.log 8 fstats9 3 _data
-
- Property svn:ignore
-
trunk/include
- Property svn:ignore
-
old new 1 1 mysql.inc.php 2 2 config_local.inc.php 3 config_local.inc.bak.php
-
- Property svn:ignore
-
trunk/include/functions_user.inc.php
r2425 r2448 300 300 or $userdata['need_update'] == true) 301 301 { 302 $userdata['cache_update_time'] = time(); 303 304 // Set need update are done 305 $userdata['need_update'] = false; 306 302 307 $userdata['forbidden_categories'] = 303 308 calculate_permissions($userdata['id'], $userdata['status']); … … 321 326 update_user_cache_categories($userdata); 322 327 323 // Set need update are done324 $userdata['need_update'] = false;325 326 // Indicate update done327 $userdata['need_update_done'] = true;328 329 328 $query = ' 330 329 SELECT COUNT(DISTINCT(image_id)) as total … … 344 343 $query = ' 345 344 INSERT INTO '.USER_CACHE_TABLE.' 346 (user_id, need_update, forbidden_categories, nb_total_images,345 (user_id, need_update, cache_update_time, forbidden_categories, nb_total_images, 347 346 image_access_type, image_access_list) 348 347 VALUES 349 ('.$userdata['id'].',\''.boolean_to_string($userdata['need_update']).'\',\'' 348 ('.$userdata['id'].',\''.boolean_to_string($userdata['need_update']).'\',' 349 .$userdata['cache_update_time'].',\'' 350 350 .$userdata['forbidden_categories'].'\','.$userdata['nb_total_images'].',"' 351 351 .$userdata['image_access_type'].'","'.$userdata['image_access_list'].'") 352 352 ;'; 353 353 pwg_query($query); 354 }355 else356 {357 // Indicate update not done358 $userdata['need_update_done'] = false;359 354 } 360 355 }
Note: See TracChangeset
for help on using the changeset viewer.