Browse Source

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

Signed-off-by: Roland Häder <roland@mxchange.org>
pull/3010/head
Roland Häder 5 years ago
parent
commit
6de232c60a
  1. 4
      mod/contacts.php
  2. 2
      mod/dfrn_request.php
  3. 2
      mod/msearch.php

4
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);
}
}

2
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'])

2
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(

Loading…
Cancel
Save