diff options
-rw-r--r-- | include/ws_functions.inc.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php index 7d1c6431a..6c3838aa1 100644 --- a/include/ws_functions.inc.php +++ b/include/ws_functions.inc.php @@ -2427,7 +2427,6 @@ SELECT * $update = array(); $info_columns = array( - 'file', 'name', 'author', 'comment', @@ -2463,6 +2462,17 @@ SELECT * } } + if (isset($params['file'])) + { + if (!empty($image_row['storage_category_id'])) + { + new PwgError(500, '[ws_images_setInfo] updating "file" is forbidden on photos added by synchronization'); + exit(); + } + + $update['file'] = $params['file']; + } + if (count(array_keys($update)) > 0) { $update['id'] = $params['image_id']; |