Changeset 26922 for trunk/admin


Ignore:
Timestamp:
Jan 23, 2014, 2:05:19 PM (11 years ago)
Author:
plg
Message:

merge r26921 from branch 2.6 to trunk

bug 3032 fixed: it seems that the SQL update in invalidate_user_cache_nb_tags corrupts the pwg_db_insert_id (very unexpected)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r26907 r26922  
    14271427 * @return int
    14281428 */
    1429 function tag_id_from_tag_name($tag_name, $create=true)
     1429function tag_id_from_tag_name($tag_name)
    14301430{
    14311431  global $page;
     
    14731473          );
    14741474
     1475        $page['tag_id_from_tag_name_cache'][$tag_name] = pwg_db_insert_id(TAGS_TABLE);
     1476
    14751477        invalidate_user_cache_nb_tags();
    14761478
    1477         $page['tag_id_from_tag_name_cache'][$tag_name] = pwg_db_insert_id(TAGS_TABLE);
    14781479        return $page['tag_id_from_tag_name_cache'][$tag_name];
    14791480      }
Note: See TracChangeset for help on using the changeset viewer.