diff --git a/components/com_content/views/article/view.html.php b/components/com_content/views/article/view.html.php index a5503a57a213d..b5f5b5f215f17 100644 --- a/components/com_content/views/article/view.html.php +++ b/components/com_content/views/article/view.html.php @@ -125,7 +125,7 @@ public function display($tpl = null) $offset = $this->state->get('list.offset'); // Check the view access to the article (the model has already computed the values). - if ($item->params->get('access-view') != true && (($item->params->get('show_noauth') != true && $user->get('guest') ))) + if ($item->params->get('access-view') == false && ($item->params->get('show_noauth', '0') == '0')) { JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR')); return; @@ -133,7 +133,7 @@ public function display($tpl = null) if ($item->params->get('show_intro', '1') == '1') { - $item->text = $item->introtext.' '.$item->fulltext; + $item->text = $item->introtext . ' ' . $item->fulltext; } elseif ($item->fulltext) {