diff options
Diffstat (limited to '')
-rw-r--r-- | admin/picture_modify.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/admin/picture_modify.php b/admin/picture_modify.php index 91e992407..814ec27d8 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -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 |