added spaces + some curly braces + some usage of dbm::is_result()

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-01-26 15:23:30 +01:00 committed by Roland Haeder
parent 720e7d6034
commit 0cd241bcbe
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
92 changed files with 1190 additions and 1087 deletions

View file

@ -10,7 +10,7 @@ function viewsrc_content(App $a) {
$item_id = (($a->argc > 1) ? intval($a->argv[1]) : 0);
if(! $item_id) {
if (! $item_id) {
$a->error = 404;
notice( t('Item not found.') . EOL);
return;
@ -25,7 +25,7 @@ function viewsrc_content(App $a) {
);
if (dbm::is_result($r))
if(is_ajax()) {
if (is_ajax()) {
echo str_replace("\n",'<br />',$r[0]['body']);
killme();
} else {