Ignore:
Timestamp:
Oct 19, 2013, 8:17:10 PM (11 years ago)
Author:
mistic100
Message:

replace some mass_updates/inserts by single_update/insert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_user.inc.php

    r22879 r25019  
    187187        );
    188188
    189     mass_inserts(USERS_TABLE, array_keys($insert), array($insert));
     189    single_insert(USERS_TABLE, $insert);
    190190
    191191    // Assign by default groups
     
    436436      // insert. This may happen when cache needs refresh and that Piwigo is
    437437      // called "very simultaneously".
    438       mass_inserts
    439       (
     438      mass_inserts(
    440439        USER_CACHE_CATEGORIES_TABLE,
    441         array
    442         (
     440        array(
    443441          'user_id', 'cat_id',
    444442          'date_last', 'max_date_last', 'nb_images', 'count_images', 'nb_categories', 'count_categories'
    445         ),
     443          ),
    446444        $user_cache_cats,
    447445        array('ignore' => true)
Note: See TracChangeset for help on using the changeset viewer.