]> git.mxchange.org Git - friendica.git/commitdiff
converted json to symbolic references
authorFriendika <info@friendika.com>
Tue, 22 Mar 2011 02:44:00 +0000 (19:44 -0700)
committerFriendika <info@friendika.com>
Tue, 22 Mar 2011 02:44:00 +0000 (19:44 -0700)
mod/match.php

index ce2ece428ce168a711df2ea3217090f3b1b98338..58c81a0cdd4b43238f31b25426d1bcbff2e2120a 100644 (file)
@@ -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 .= '<a href="' . $jj[1] . '">' . '<img src="' . $jj[2] . '" alt="' . $jj[1] . '" />' . $jj[0] . '</a>';
+
+                               $o .= '<a href="' . $jj->url . '">' . '<img src="' . $jj->photo . '" alt="' . $jj->name . '" />' . $jj->name . '</a>';
                        }
                }
                else {