From ee1dff998047834319464ff10c16679aefcfdfab Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 21 Mar 2011 19:44:00 -0700 Subject: [PATCH] converted json to symbolic references --- mod/match.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/match.php b/mod/match.php index ce2ece428..58c81a0cd 100644 --- a/mod/match.php +++ b/mod/match.php @@ -24,13 +24,13 @@ function match_content(&$a) { $x = post_url('http://dir.friendika.com/msearch', $params); + $j = json_decode($x); if(count($j)) { - - foreach($j as $jj) { - $o .= '' . '' . $jj[1] . '' . $jj[0] . ''; + + $o .= '' . '' . $jj->name . '' . $jj->name . ''; } } else {