From: Pierre Rudloff Date: Sat, 23 Dec 2017 00:30:50 +0000 (+0100) Subject: Undefined variable X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=70ab9dc9bea07a90fa19937a0f4ae8606ced21fa;p=friendica.git Undefined variable --- diff --git a/include/api.php b/include/api.php index c9c227daaa..d7e383d53c 100644 --- a/include/api.php +++ b/include/api.php @@ -3163,10 +3163,10 @@ function api_statuses_f($qtype) return false; } + $sql_extra = ''; if ($qtype == 'friends') { $sql_extra = sprintf(" AND ( `rel` = %d OR `rel` = %d ) ", intval(CONTACT_IS_SHARING), intval(CONTACT_IS_FRIEND)); - } - if ($qtype == 'followers') { + } elseif ($qtype == 'followers') { $sql_extra = sprintf(" AND ( `rel` = %d OR `rel` = %d ) ", intval(CONTACT_IS_FOLLOWER), intval(CONTACT_IS_FRIEND)); }