From: fabrixxm Date: Wed, 2 Jan 2019 15:18:40 +0000 (+0100) Subject: Photo model. Small fix to `update()` X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=15b0a7a4d8d32c76fc64947f7178125707419ea5;p=friendica.git Photo model. Small fix to `update()` pass `$old_fields` param to `DBA::update()` --- 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); } /**