mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 00:53:04 +02:00
bug 3032 fixed: it seems that the SQL update in invalidate_user_cache_nb_tags corrupts the pwg_db_insert_id (very unexpected)
git-svn-id: http://piwigo.org/svn/branches/2.6@26921 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -1426,7 +1426,7 @@ DELETE
|
||||
* @param string $tag_name
|
||||
* @return int
|
||||
*/
|
||||
function tag_id_from_tag_name($tag_name, $create=true)
|
||||
function tag_id_from_tag_name($tag_name)
|
||||
{
|
||||
global $page;
|
||||
|
||||
@@ -1472,9 +1472,10 @@ SELECT id
|
||||
)
|
||||
);
|
||||
|
||||
$page['tag_id_from_tag_name_cache'][$tag_name] = pwg_db_insert_id(TAGS_TABLE);
|
||||
|
||||
invalidate_user_cache_nb_tags();
|
||||
|
||||
$page['tag_id_from_tag_name_cache'][$tag_name] = pwg_db_insert_id(TAGS_TABLE);
|
||||
return $page['tag_id_from_tag_name_cache'][$tag_name];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user