Changeset 26921


Ignore:
Timestamp:
01/23/14 14:04:15 (5 years ago)
Author:
plg
Message:

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
  • branches/2.6/admin/include/functions.php

    r26906 r26921  
    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.