From b927997759201cf7db0d83878eaa7b1ba1606430 Mon Sep 17 00:00:00 2001
From: Cameron <e107inc@gmail.com>
Date: Sat, 16 Jan 2021 15:53:56 -0800
Subject: [PATCH] Fix $GLOBALS check.

---
 e107_handlers/db_debug_class.php | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/e107_handlers/db_debug_class.php b/e107_handlers/db_debug_class.php
index 7529e4300..2b78570bf 100644
--- a/e107_handlers/db_debug_class.php
+++ b/e107_handlers/db_debug_class.php
@@ -1149,9 +1149,10 @@
 
 	//	$ADMIN_DIRECTORY = e107::getFolder('admin');
 
-		if($GLOBALS['E107_CLEAN_EXIT'])
-		{
 
+
+		if(!empty($GLOBALS['E107_CLEAN_EXIT']))
+		{
 			return;
 		}
 
@@ -1171,7 +1172,7 @@
 // 
 // Error while in the footer, or during startup, or during above processing
 //
-		if($GLOBALS['E107_CLEAN_EXIT'])
+		if(!empty($GLOBALS['E107_CLEAN_EXIT']))
 		{
 			return;
 		}