X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmatch.php;h=4119bf8e84315c8b8cbeed8b0dd0c337edf36820;hb=5d7e1e1a1544421c594e13efb9c1ebece241e94f;hp=baffb3d077540e566e9ab4ae8825e3ea9a5cb803;hpb=09851331a9dc8601919cd0c9200686b92843d235;p=friendica.git diff --git a/mod/match.php b/mod/match.php index baffb3d077..4119bf8e84 100644 --- a/mod/match.php +++ b/mod/match.php @@ -1,5 +1,8 @@ pager['page'] != 1) + if($a->pager['page'] != 1) $params['p'] = $a->pager['page']; - if (strlen(get_config('system','directory'))) + if(strlen(get_config('system','directory'))) $x = post_url(get_server().'/msearch', $params); else $x = post_url(App::get_baseurl() . '/msearch', $params); $j = json_decode($x); - if ($j->total) { + if($j->total) { $a->set_pager_total($j->total); $a->set_pager_itemspage($j->items_page); } - if (count($j->results)) { + if(count($j->results)) { $id = 0; - foreach ($j->results as $jj) { + foreach($j->results as $jj) { $match_nurl = normalise_link($jj->url); $match = q("SELECT `nurl` FROM `contact` WHERE `uid` = '%d' AND nurl='%s' LIMIT 1", intval(local_user()),