Show full error trace on CLI too. CLI scripts can only be run by administrators
authorJan Schneider <jan@horde.org>
Mon, 13 Dec 2010 17:12:01 +0000 (18:12 +0100)
committerJan Schneider <jan@horde.org>
Thu, 16 Dec 2010 10:23:54 +0000 (11:23 +0100)
anyway.

framework/Core/lib/Horde.php

index 0b5da57..cd0a202 100644 (file)
@@ -117,7 +117,7 @@ class Horde
             $errortext .= '<h3>' . htmlspecialchars($error) . '</h3>';
         }
 
-        if ($admin) {
+        if ($admin || $cli) {
             if ($error instanceof Exception) {
                 $trace = $error;
             } else {