Fix wrong operators in Model\Item and Model\Contact
This commit is contained in:
parent
25b8628762
commit
3c50a11ff1
|
@ -1753,7 +1753,7 @@ class Contact extends BaseObject
|
||||||
}
|
}
|
||||||
} elseif (Config::get('system', 'dfrn_only') && ($ret['network'] != Protocol::DFRN)) {
|
} 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('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;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2476,7 +2476,7 @@ class Item extends BaseObject
|
||||||
$id = 0;
|
$id = 0;
|
||||||
|
|
||||||
if ($uid == 0) {
|
if ($uid == 0) {
|
||||||
$uid == local_user();
|
$uid = local_user();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Does the given user have this item?
|
// Does the given user have this item?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user