Skip to content
Snippets Groups Projects
Commit 7f28fb51 authored by Olav Morken's avatar Olav Morken
Browse files

error.php: Only print out the exception if it is available.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@96 44740490-163a-0410-bde0-09ae8108e29a
parent 0055edb0
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,12 @@ ...@@ -18,7 +18,12 @@
</p> </p>
<?php
/* Print out exception only if the exception is available. */
if (array_key_exists('e', $data)) {
?>
<p>The debug information below may be interesting for the administrator / help desk:</p> <p>The debug information below may be interesting for the administrator / help desk:</p>
<div style="border: 1px solid #eee; padding: 1em; font-size: x-small"> <div style="border: 1px solid #eee; padding: 1em; font-size: x-small">
...@@ -27,6 +32,9 @@ ...@@ -27,6 +32,9 @@
<?php echo htmlentities($data['e']->getTraceAsString()); ?> <?php echo htmlentities($data['e']->getTraceAsString()); ?>
</div> </div>
</div> </div>
<?php
}
?>
<h2 style="clear: both">How to get help</h2> <h2 style="clear: both">How to get help</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment