From 1828f25db8d75e2e4a1eb37ceae1d6781aec2156 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 24 Jan 2018 22:22:31 +0000 Subject: [PATCH] Function renamed --- src/Protocol/DFRN.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 15867179cd..808e8aaa2a 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -2075,7 +2075,7 @@ class DFRN { $changed = false; - if (self::editedTimestampIsNewer($current, $item)) { + if (self::isEditedTimestampNewer($current, $item)) { // do not accept (ignore) an earlier edit than one we currently have. if (datetime_convert("UTC", "UTC", $item["edited"]) < $current["edited"]) { return false; @@ -2417,7 +2417,7 @@ class DFRN ); // Is there an existing item? - if (DBM::is_result($current) && self::editedTimestampIsNewer($current[0], $item) + if (DBM::is_result($current) && self::isEditedTimestampNewer($current[0], $item) && (datetime_convert("UTC", "UTC", $item["edited"]) < $current[0]["edited"]) ) { logger("Item ".$item["uri"]." already existed.", LOGGER_DEBUG); @@ -3144,7 +3144,7 @@ class DFRN * assumes the update has been seen before and should be ignored. * */ - private static function editedTimestampIsNewer($existing, $update) + private static function isEditedTimestampNewer($existing, $update) { if (!x($existing, 'edited') || !$existing['edited']) { return true;