X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fviewsrc.php;h=94ed9b5dc247f602feaa6ad21a0df9af43bc73a6;hb=db2d0e009503539b134fd43837d440028d5b8de7;hp=94847ec7b92c55dfdbf84fbe199146d1b89cb367;hpb=a76a497d924a16b8b07b126408db21655aac3bd6;p=friendica.git diff --git a/mod/viewsrc.php b/mod/viewsrc.php old mode 100755 new mode 100644 index 94847ec7b9..94ed9b5dc2 --- a/mod/viewsrc.php +++ b/mod/viewsrc.php @@ -3,7 +3,7 @@ function viewsrc_content(&$a) { - if(! local_user()) { + if (! local_user()) { notice( t('Access denied.') . EOL); return; } @@ -24,8 +24,13 @@ function viewsrc_content(&$a) { dbesc($item_id) ); - if(count($r)) - $o .= str_replace("\n",'
',$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; }