From 02fa970569dfd190ffa390b556a67fe51e95121a Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 17 Sep 2014 19:14:23 -0700 Subject: make the output a bit more readable --- mod/xchan.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/xchan.php') diff --git a/mod/xchan.php b/mod/xchan.php index a4dc70550..714603f6e 100644 --- a/mod/xchan.php +++ b/mod/xchan.php @@ -22,7 +22,7 @@ function xchan_content(&$a) { if($r) { foreach($r as $rr) { - $o .= str_replace("\n","
",print_r($rr,true)) . EOL; + $o .= str_replace(array("\n"," "),array("
"," "),print_r($rr,true)) . EOL; $s = q("select * from hubloc where hubloc_hash like '%s'", dbesc($r[0]['xchan_hash']) @@ -30,7 +30,7 @@ function xchan_content(&$a) { if($s) { foreach($s as $rr) - $o .= str_replace("\n","
",print_r($rr,true)) . EOL; + $o .= str_replace(array("\n"," "),array("
"," "),print_r($rr,true)) . EOL; } } } -- cgit v1.2.3