]> git.mxchange.org Git - friendica.git/commitdiff
Photo model: set updated field in update()
authorfabrixxm <fabrix.xm@gmail.com>
Wed, 21 Nov 2018 17:08:23 +0000 (18:08 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 14:10:45 +0000 (09:10 -0500)
src/Model/Photo.php

index a72a7a66f9b890196fad4777fdefa3b9a6a2e005..edb4bc0e26a827ac756981ddb202923fba956702 100644 (file)
@@ -345,6 +345,8 @@ class Photo extends BaseObject
                        }
                }
 
+               $fields['updated'] = DateTimeFormat::utcNow();
+
                return DBA::update("photo", $fields, $conditions);
        }