diff options
author | mistic100 <mistic@piwigo.org> | 2013-10-19 18:17:10 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2013-10-19 18:17:10 +0000 |
commit | 4926fced5e18cc5ea71f3c32e695649230667efb (patch) | |
tree | 807f86d273a1c652105bed147fbd76b4dc639c39 /include/functions_user.inc.php | |
parent | ae707279a1945e383c312cd648d288606a79e341 (diff) |
replace some mass_updates/inserts by single_update/insert
git-svn-id: http://piwigo.org/svn/trunk@25019 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r-- | include/functions_user.inc.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php index a5d57daeb..6dc04b7b6 100644 --- a/include/functions_user.inc.php +++ b/include/functions_user.inc.php @@ -186,7 +186,7 @@ SELECT MAX('.$conf['user_fields']['id'].') + 1 $conf['user_fields']['email'] => $mail_address ); - mass_inserts(USERS_TABLE, array_keys($insert), array($insert)); + single_insert(USERS_TABLE, $insert); // Assign by default groups { @@ -435,14 +435,12 @@ DELETE FROM '.USER_CACHE_CATEGORIES_TABLE.' // Due to concurrency issues, we ask MySQL to ignore errors on // insert. This may happen when cache needs refresh and that Piwigo is // called "very simultaneously". - mass_inserts - ( + mass_inserts( USER_CACHE_CATEGORIES_TABLE, - array - ( + array( 'user_id', 'cat_id', 'date_last', 'max_date_last', 'nb_images', 'count_images', 'nb_categories', 'count_categories' - ), + ), $user_cache_cats, array('ignore' => true) ); |