mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-10 18:53:01 +02:00
replace some mass_updates/inserts by single_update/insert
git-svn-id: http://piwigo.org/svn/trunk@25019 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -154,13 +154,10 @@ if (isset($_POST['submit']) and count($page['errors']) == 0)
|
||||
$data{'date_creation'} = null;
|
||||
}
|
||||
|
||||
mass_updates(
|
||||
single_update(
|
||||
IMAGES_TABLE,
|
||||
array(
|
||||
'primary' => array('id'),
|
||||
'update' => array_diff(array_keys($data), array('id'))
|
||||
),
|
||||
array($data)
|
||||
$data,
|
||||
array('id' => $data['id'])
|
||||
);
|
||||
|
||||
// time to deal with tags
|
||||
|
||||
Reference in New Issue
Block a user