From c6a56985a8ef79cac4d0908b26fc4bad3e4b94a2 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 26 May 2021 18:15:07 +0000 Subject: [PATCH] Changed comments --- src/Model/Item.php | 2 +- src/Model/User.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index db7503047..ac9af32a6 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1355,7 +1355,7 @@ class Item public static function storeForUserByUriId(int $uri_id, int $uid, array $fields = [], int $source_uid = 0) { if ($uid == $source_uid) { - Logger::warning('target UID must be be equal to the source UID', ['uri-id' => $uri_id, 'uid' => $uid]); + Logger::warning('target UID must not be be equal to the source UID', ['uri-id' => $uri_id, 'uid' => $uid]); return 0; } diff --git a/src/Model/User.php b/src/Model/User.php index 0482488e2..2131406d4 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -312,7 +312,7 @@ class User */ public static function getIdForURL(string $url) { - // Avoid any database requests when the hostname isn't even part of the url. + // Avoid database queries when the local node hostname isn't even part of the url. if (!Contact::isLocal($url)) { return 0; }