mirror of
https://github.com/friendica/friendica
synced 2025-05-08 18:24:10 +02:00
Fixes:
- more "bool expected but null returned" errors
This commit is contained in:
parent
7c049abfda
commit
8e19998191
2 changed files with 6 additions and 6 deletions
|
@ -246,7 +246,7 @@ class User
|
|||
if (!empty($cdata['public'])) {
|
||||
$public_contact = DBA::selectFirst('user-contact', ['ignored'], ['cid' => $cdata['public'], 'uid' => $uid]);
|
||||
if (DBA::isResult($public_contact)) {
|
||||
$public_ignored = $public_contact['ignored'];
|
||||
$public_ignored = (bool) $public_contact['ignored'];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -255,7 +255,7 @@ class User
|
|||
if (!empty($cdata['user'])) {
|
||||
$user_contact = DBA::selectFirst('contact', ['readonly'], ['id' => $cdata['user'], 'pending' => false]);
|
||||
if (DBA::isResult($user_contact)) {
|
||||
$user_ignored = $user_contact['readonly'];
|
||||
$user_ignored = (bool) $user_contact['readonly'];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -306,7 +306,7 @@ class User
|
|||
if (!empty($cdata['public'])) {
|
||||
$public_contact = DBA::selectFirst('user-contact', ['collapsed'], ['cid' => $cdata['public'], 'uid' => $uid]);
|
||||
if (DBA::isResult($public_contact)) {
|
||||
$collapsed = $public_contact['collapsed'];
|
||||
$collapsed = (bool) $public_contact['collapsed'];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue