bug 2894 fixed: make sure all users cache is reset when an admin changes the

album thumbnail.


git-svn-id: http://piwigo.org/svn/branches/2.5@22402 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2013-04-29 14:57:09 +00:00
parent 8f857e0d41
commit f4c7ad9c46
+2 -7
View File
@@ -309,13 +309,8 @@ UPDATE '.CATEGORIES_TABLE.'
;';
pwg_query($query);
$query = '
UPDATE '.USER_CACHE_CATEGORIES_TABLE.'
SET user_representative_picture_id = NULL
WHERE user_id = '.$user['id'].'
AND cat_id = '.$page['category']['id'].'
;';
pwg_query($query);
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
invalidate_user_cache();
}
redirect($url_self);