summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2006-04-11 13:55:56 +0000
committerxue <>2006-04-11 13:55:56 +0000
commit5f4f9760225b4070d86c0e2e9f80b33999c17584 (patch)
tree12931c6225b78260b6a5bf0e240804478f1a8293 /framework
parentce695a47526931de5e8f531fa4461281d66b6a32 (diff)
trace() now only records stackstrace info under DEBUG mode.
Diffstat (limited to 'framework')
-rw-r--r--framework/PradoBase.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/PradoBase.php b/framework/PradoBase.php
index 9793f90e..75428b89 100644
--- a/framework/PradoBase.php
+++ b/framework/PradoBase.php
@@ -465,7 +465,7 @@ class PradoBase
{
if(self::$_application && self::$_application->getMode()===TApplication::STATE_PERFORMANCE)
return;
- if(!self::$_application || self::$_application->getMode()===TApplication::STATE_DEBUG)
+ if(self::$_application && self::$_application->getMode()===TApplication::STATE_DEBUG)
{
$trace=debug_backtrace();
if(isset($trace[0]['file']) && isset($trace[0]['line']))