]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong operators in Model\Item and Model\Contact
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 7 Jan 2019 18:28:55 +0000 (13:28 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 16:12:51 +0000 (11:12 -0500)
src/Model/Contact.php
src/Model/Item.php

index a92b7777d33587d3ac62dc95e4a815f3fa093235..222a262dfa00479fe6a6ed01d022a20930373b0d 100644 (file)
@@ -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;
                }
 
index 27ffb2480e07416b8ae3900698398cd108c425d3..300e80650d16992e0eea4c8c7241d105644d6323 100644 (file)
@@ -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?