summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-init.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-25 12:23:38 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-25 12:23:38 -0400
commit6caab7c08b15c39e27674be4d5f0d8d6bb3a0422 (patch)
tree177d06c977c8deb057878d2da2eaa0d7d3392758 /pts-core/functions/pts-init.php
parentf3d4ea9e3c925a36fbdcf9c04979f8ed8ba43944 (diff)
downloadphoronix-test-suite-upstream-6caab7c08b15c39e27674be4d5f0d8d6bb3a0422.tar.gz
phoronix-test-suite-upstream-6caab7c08b15c39e27674be4d5f0d8d6bb3a0422.tar.xz
phoronix-test-suite-upstream-6caab7c08b15c39e27674be4d5f0d8d6bb3a0422.zip
pts-core: Fix for DEBUG_FILE not being detected
Diffstat (limited to 'pts-core/functions/pts-init.php')
-rw-r--r--pts-core/functions/pts-init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pts-core/functions/pts-init.php b/pts-core/functions/pts-init.php
index 1e9fbf9..71bed29 100644
--- a/pts-core/functions/pts-init.php
+++ b/pts-core/functions/pts-init.php
@@ -55,7 +55,7 @@ function pts_init()
define("PTS_START_TIME", THIS_RUN_TIME);
// Run in debug mode?
- if(getenv("DEBUG") == "1" || getenv("PTS_DEBUG") == "1" || ($debug_file = getenv("DEBUG_FILE")) != FALSE)
+ if(($debug_file = getenv("DEBUG_FILE")) != FALSE || getenv("DEBUG") == "1" || getenv("PTS_DEBUG") == "1")
{
define("PTS_DEBUG_MODE", 1);
define("IS_DEBUG_MODE", true);