<?php
-if(! function_exists('viewsrc_content')) {
-function viewsrc_content(&$a) {
+use Friendica\App;
- if(! local_user()) {
+function viewsrc_content(App $a) {
+
+ if (! local_user()) {
notice( t('Access denied.') . EOL);
return;
}
dbesc($item_id)
);
- if(count($r))
+ if (dbm::is_result($r))
if(is_ajax()) {
echo str_replace("\n",'<br />',$r[0]['body']);
killme();
}
return $o;
}
-}
+