X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fviewsrc.php;h=8510bd539573ac72ebbd07b1636b53ad06bb61ce;hb=8ce20f975c7fc1c27d1981234aefc93b0e7b662a;hp=8900e44db446663bde0c5b29c59ebe72e577b297;hpb=0eceade2fe0bb432543d8c48b3e9e6c5f3a3b00c;p=friendica.git diff --git a/mod/viewsrc.php b/mod/viewsrc.php index 8900e44db4..8510bd5395 100644 --- a/mod/viewsrc.php +++ b/mod/viewsrc.php @@ -1,9 +1,9 @@ ',$r[0]['body']); + if (dbm::is_result($r)) + if(is_ajax()) { + echo str_replace("\n",'
',$r[0]['body']); + killme(); + } else { + $o .= str_replace("\n",'
',$r[0]['body']); + } return $o; }