]> git.mxchange.org Git - friendica.git/commitdiff
Fix SQL date format bug in dfrn
authorAlexandre Alapetite <alexandre@alapetite.fr>
Fri, 21 Apr 2017 22:00:13 +0000 (00:00 +0200)
committerAlexandre Alapetite <alexandre@alapetite.fr>
Fri, 21 Apr 2017 22:00:13 +0000 (00:00 +0200)
https://github.com/friendica/friendica/issues/3336
https://github.com/friendica/friendica/pull/3338

include/dfrn.php

index a4651c6c8ecda5f793b7f630cd3ebfb2c4dd26ba..ddebf1e9bf60210d575a337a7e38f976b8472340 100644 (file)
@@ -1460,7 +1460,7 @@ class dfrn {
                                        dbesc($contact["name"]), dbesc($contact["nick"]), dbesc($contact["about"]), dbesc($contact["location"]),
                                        dbesc($contact["addr"]), dbesc($contact["keywords"]), dbesc($contact["bdyear"]),
                                        dbesc($contact["bd"]), intval($contact["hidden"]), dbesc($contact["xmpp"]),
-                                       dbesc($contact["name-date"]), dbesc($contact["uri-date"]),
+                                       dbesc(dbm::date($contact["name-date"])), dbesc(dbm::date($contact["uri-date"])),
                                        intval($contact["id"]), dbesc($contact["network"]));
                        }