$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());
}
}
$url = $user;
$extra_query = "AND `contact`.`nurl` = ? ";
- if (BaseApi::getCurrentUserID() !== false) {
+ if (!empty(BaseApi::getCurrentUserID())) {
$extra_query .= "AND `contact`.`uid`=" . intval(BaseApi::getCurrentUserID());
}
}