From 7f28fb51ce6687eaefb9367261dd5a05a9aa3906 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Thu, 13 Dec 2007 09:49:53 +0000 Subject: [PATCH] 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 --- templates/default/en/error.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/default/en/error.php b/templates/default/en/error.php index 8fa49540d..20dacc659 100644 --- a/templates/default/en/error.php +++ b/templates/default/en/error.php @@ -18,7 +18,12 @@ </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> <div style="border: 1px solid #eee; padding: 1em; font-size: x-small"> @@ -27,6 +32,9 @@ <?php echo htmlentities($data['e']->getTraceAsString()); ?> </div> </div> +<?php +} +?> <h2 style="clear: both">How to get help</h2> -- GitLab