centurion-project / Centurion

Centurion is an open-source CMS delivered as a flexible PHP5 Content Management Framework
http://www.centurion-project.org
197 stars 51 forks source link

bugged error.phtml #62

Closed aurmil closed 12 years ago

aurmil commented 12 years ago

in library/Centurion/Contrib/core/views/scripts/centurion/error.phtml usage of $this->exception without checking that (null !== $this->exception) when displayExceptions = 0, makes fatal error, breaks render, layout is not rendered

    <?php if (null !== $this->exception): ?>
    DEBUG INFOS :
    <br />
    <strong>
        Exception <em><?php echo get_class($this->exception) ?></em>
        <u><?php echo $this->exception->getMessage() ?></u> sent in <?php echo $this->exception->getFile() ?> at line <?php echo $this->exception->getLine() ?>
    </strong>
    <?php endif; ?>