mirror of
https://github.com/friendica/friendica
synced 2025-05-18 19:04:10 +02:00
Avoid problems with uid=0
This commit is contained in:
parent
fa5acb3b21
commit
bd0e2dc0a8
4 changed files with 4 additions and 4 deletions
|
@ -166,7 +166,7 @@ class Profile
|
|||
}
|
||||
}
|
||||
|
||||
$profile = User::getOwnerDataById($user['uid'], false);
|
||||
$profile = !empty($user['uid']) ? User::getOwnerDataById($user['uid'], false) : [];
|
||||
|
||||
if (empty($profile) && empty($profiledata)) {
|
||||
Logger::log('profile error: ' . DI::args()->getQueryString(), Logger::DEBUG);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue