From 5f4f9760225b4070d86c0e2e9f80b33999c17584 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 11 Apr 2006 13:55:56 +0000 Subject: trace() now only records stackstrace info under DEBUG mode. --- framework/PradoBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework') 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'])) -- cgit v1.2.3