diff --git a/components/com_content/views/article/view.html.php b/components/com_content/views/article/view.html.php index 0bbbb73258e8f..b649dcc0e340c 100644 --- a/components/com_content/views/article/view.html.php +++ b/components/com_content/views/article/view.html.php @@ -98,16 +98,14 @@ 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') ))) { - - JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR')); - + if ($item->params->get('access-view') == false && ($item->params->get('show_noauth', '0') == '0')) + { + JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR')); return; - } - if ($item->params->get('show_intro', '1')=='1') { - $item->text = $item->introtext.' '.$item->fulltext; + if ($item->params->get('show_intro', '1') == '1') { + $item->text = $item->introtext . ' ' . $item->fulltext; } elseif ($item->fulltext) { $item->text = $item->fulltext;