From 15b0a7a4d8d32c76fc64947f7178125707419ea5 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Wed, 2 Jan 2019 16:18:40 +0100 Subject: [PATCH] Photo model. Small fix to `update()` pass `$old_fields` param to `DBA::update()` --- src/Model/Photo.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/Photo.php b/src/Model/Photo.php index 88f6d4269b..a1e2e378be 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -306,6 +306,7 @@ class Photo extends BaseObject return $r; } + /** * @brief Delete info from table and data from storage * @@ -362,7 +363,7 @@ class Photo extends BaseObject $fields['edited'] = DateTimeFormat::utcNow(); - return DBA::update("photo", $fields, $conditions); + return DBA::update("photo", $fields, $conditions, $old_fields); } /**