aboutsummaryrefslogtreecommitdiffstats
path: root/mod/match.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-21 19:44:00 -0700
committerFriendika <info@friendika.com>2011-03-21 19:44:00 -0700
commitee1dff998047834319464ff10c16679aefcfdfab (patch)
tree12bfddb9c2cd37edc3477c4ab4e839527eb2382b /mod/match.php
parente16bca4f76fde5cea40b5a855ed9210718a7ed76 (diff)
downloadvolse-hubzilla-ee1dff998047834319464ff10c16679aefcfdfab.tar.gz
volse-hubzilla-ee1dff998047834319464ff10c16679aefcfdfab.tar.bz2
volse-hubzilla-ee1dff998047834319464ff10c16679aefcfdfab.zip
converted json to symbolic references
Diffstat (limited to 'mod/match.php')
-rw-r--r--mod/match.php6
1 files 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 .= '<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 {