From 3c50a11ff193dddba8390a9fabacdc37377de19b Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 7 Jan 2019 13:28:55 -0500 Subject: [PATCH] Fix wrong operators in Model\Item and Model\Contact --- src/Model/Contact.php | 2 +- src/Model/Item.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index a92b7777d3..222a262dfa 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1753,7 +1753,7 @@ class Contact extends BaseObject } } elseif (Config::get('system', 'dfrn_only') && ($ret['network'] != Protocol::DFRN)) { $result['message'] = L10n::t('This site is not configured to allow communications with other networks.') . EOL; - $result['message'] != L10n::t('No compatible communication protocols or feeds were discovered.') . EOL; + $result['message'] .= L10n::t('No compatible communication protocols or feeds were discovered.') . EOL; return $result; } diff --git a/src/Model/Item.php b/src/Model/Item.php index 27ffb2480e..300e80650d 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -2476,7 +2476,7 @@ class Item extends BaseObject $id = 0; if ($uid == 0) { - $uid == local_user(); + $uid = local_user(); } // Does the given user have this item?