From f2758d00fb133ad5524ecd84e40437db457a6253 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sat, 23 Dec 2017 01:34:12 +0100 Subject: [PATCH] Unused variable --- include/api.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/include/api.php b/include/api.php index deb6a76da4..f44afd3a41 100644 --- a/include/api.php +++ b/include/api.php @@ -3363,17 +3363,6 @@ function api_ff_ids($type,$qtype) $user_info = api_get_user($a); - if ($qtype == 'friends') { - $sql_extra = sprintf(" AND ( `rel` = %d OR `rel` = %d ) ", intval(CONTACT_IS_SHARING), intval(CONTACT_IS_FRIEND)); - } - if ($qtype == 'followers') { - $sql_extra = sprintf(" AND ( `rel` = %d OR `rel` = %d ) ", intval(CONTACT_IS_FOLLOWER), intval(CONTACT_IS_FRIEND)); - } - - if (!$user_info["self"]) { - $sql_extra = " AND false "; - } - $stringify_ids = (x($_REQUEST, 'stringify_ids') ? $_REQUEST['stringify_ids'] : false); $r = q(