From: Jan Schneider Date: Mon, 20 Jul 2009 10:35:17 +0000 (+0200) Subject: Special xdebug handling is only necessary for var_dump(). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=13d4c595a52234dbeb8168372a9ab99b4dfe05e9;p=horde.git Special xdebug handling is only necessary for var_dump(). --- diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index e176172dd..1468322eb 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -231,11 +231,7 @@ class Horde if (is_object($error)) { $errortext .= '

' . _("Details:") . '

'; $errortext .= '

' . _("The full error message is logged in Horde's log file, and is shown below only to administrators. Non-administrative users will not see error details.") . '

'; - if (extension_loaded('xdebug')) { - $errortext .= '
' . print_r($error, true); - } else { - $errortext .= '

' . htmlspecialchars(print_r($error, true)) . '

'; - } + $errortext .= '

' . htmlspecialchars(print_r($error, true)) . '

'; } } elseif ($log) { $errortext .= '

' . _("Details have been logged for the administrator.") . '

';