]> git.mxchange.org Git - friendica.git/commitdiff
Photo model. Small fix to `update()`
authorfabrixxm <fabrix.xm@gmail.com>
Wed, 2 Jan 2019 15:18:40 +0000 (16:18 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 15:00:45 +0000 (10:00 -0500)
pass `$old_fields` param to `DBA::update()`

src/Model/Photo.php

index 88f6d4269b3678c991c5681bb76270f83da75837..a1e2e378bec4372eb72bfa2db37eef65311852ea 100644 (file)
@@ -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);
        }
 
        /**