Cleanup for #3010 - removed all redundant lines found by @rabuzarus

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-12-14 09:31:27 +01:00
parent a8dc8b288c
commit 6de232c60a
3 changed files with 1 additions and 7 deletions

View File

@ -772,8 +772,6 @@ function contacts_content(&$a) {
$sql_extra3 = unavailable_networks(); $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 ", $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($_SESSION['uid']),
intval($a->pager['start']), intval($a->pager['start']),
@ -783,7 +781,7 @@ function contacts_content(&$a) {
$contacts = array(); $contacts = array();
if(dbm::is_result($r)) { if(dbm::is_result($r)) {
foreach($r as $rr) { foreach ($r as $rr) {
$contacts[] = _contact_detail_for_template($rr); $contacts[] = _contact_detail_for_template($rr);
} }
} }

View File

@ -726,8 +726,6 @@ function dfrn_request_content(&$a) {
if(dbm::is_result($intro)) { if(dbm::is_result($intro)) {
$auto_confirm = false;
$r = q("SELECT `contact`.*, `user`.* FROM `contact` LEFT JOIN `user` ON `contact`.`uid` = `user`.`uid` $r = q("SELECT `contact`.*, `user`.* FROM `contact` LEFT JOIN `user` ON `contact`.`uid` = `user`.`uid`
WHERE `contact`.`id` = %d LIMIT 1", WHERE `contact`.`id` = %d LIMIT 1",
intval($intro[0]['contact-id']) intval($intro[0]['contact-id'])

View File

@ -25,8 +25,6 @@ function msearch_post(&$a) {
intval($perpage) intval($perpage)
); );
$results = array();
if(dbm::is_result($r)) { if(dbm::is_result($r)) {
foreach($r as $rr) foreach($r as $rr)
$results[] = array( $results[] = array(