From 6de232c60a264f91b4a73ce7292c985f2c7b6fe9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 14 Dec 2016 09:31:27 +0100 Subject: [PATCH] Cleanup for #3010 - removed all redundant lines found by @rabuzarus MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- mod/contacts.php | 4 +--- mod/dfrn_request.php | 2 -- mod/msearch.php | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/mod/contacts.php b/mod/contacts.php index 740be0ca93..a55cd1dd02 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -772,8 +772,6 @@ function contacts_content(&$a) { $sql_extra3 = unavailable_networks(); - $contacts = array(); - $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `pending` = 0 $sql_extra $sql_extra2 $sql_extra3 ORDER BY `name` ASC LIMIT %d , %d ", intval($_SESSION['uid']), intval($a->pager['start']), @@ -783,7 +781,7 @@ function contacts_content(&$a) { $contacts = array(); if(dbm::is_result($r)) { - foreach($r as $rr) { + foreach ($r as $rr) { $contacts[] = _contact_detail_for_template($rr); } } diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index 8bca431dd2..0318c854dd 100644 --- a/mod/dfrn_request.php +++ b/mod/dfrn_request.php @@ -726,8 +726,6 @@ function dfrn_request_content(&$a) { if(dbm::is_result($intro)) { - $auto_confirm = false; - $r = q("SELECT `contact`.*, `user`.* FROM `contact` LEFT JOIN `user` ON `contact`.`uid` = `user`.`uid` WHERE `contact`.`id` = %d LIMIT 1", intval($intro[0]['contact-id']) diff --git a/mod/msearch.php b/mod/msearch.php index 8fae1177fe..fd46cc1e1b 100644 --- a/mod/msearch.php +++ b/mod/msearch.php @@ -25,8 +25,6 @@ function msearch_post(&$a) { intval($perpage) ); - $results = array(); - if(dbm::is_result($r)) { foreach($r as $rr) $results[] = array( -- 2.39.5