converted json to symbolic references
This commit is contained in:
parent
e16bca4f76
commit
ee1dff9980
1 changed files with 3 additions and 3 deletions
|
@ -24,13 +24,13 @@ function match_content(&$a) {
|
||||||
|
|
||||||
|
|
||||||
$x = post_url('http://dir.friendika.com/msearch', $params);
|
$x = post_url('http://dir.friendika.com/msearch', $params);
|
||||||
|
|
||||||
$j = json_decode($x);
|
$j = json_decode($x);
|
||||||
|
|
||||||
if(count($j)) {
|
if(count($j)) {
|
||||||
|
|
||||||
|
|
||||||
foreach($j as $jj) {
|
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 {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue