mirror of
https://github.com/friendica/friendica
synced 2024-11-18 15:43:42 +00:00
Fixed handling of return value
This commit is contained in:
parent
b67c10812a
commit
2d5989a6bd
1 changed files with 2 additions and 2 deletions
|
@ -341,7 +341,7 @@ function api_get_user($contact_id = null)
|
|||
$user = Strings::normaliseLink($contact_id);
|
||||
$url = $user;
|
||||
$extra_query = "AND `contact`.`nurl` = ? ";
|
||||
if (BaseApi::getCurrentUserID() !== false) {
|
||||
if (!empty(BaseApi::getCurrentUserID())) {
|
||||
$extra_query .= "AND `contact`.`uid`=" . intval(BaseApi::getCurrentUserID());
|
||||
}
|
||||
}
|
||||
|
@ -356,7 +356,7 @@ function api_get_user($contact_id = null)
|
|||
|
||||
$url = $user;
|
||||
$extra_query = "AND `contact`.`nurl` = ? ";
|
||||
if (BaseApi::getCurrentUserID() !== false) {
|
||||
if (!empty(BaseApi::getCurrentUserID())) {
|
||||
$extra_query .= "AND `contact`.`uid`=" . intval(BaseApi::getCurrentUserID());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue