From fc3abeb970b4c2ac3b0ed4c3080a63f51ce11579 Mon Sep 17 00:00:00 2001 From: Conrad Vermeulen Date: Fri, 27 Jun 2008 15:10:14 +0000 Subject: [PATCH] KTS-3268 "Logging" Updated. Need to ensure that the logger is actually set --- lib/database/dbutil.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/database/dbutil.inc b/lib/database/dbutil.inc index 1d4fd5c..f221dbc 100644 --- a/lib/database/dbutil.inc +++ b/lib/database/dbutil.inc @@ -67,7 +67,7 @@ class DBUtil { $sQuery = $query; } $res = $db->query($sQuery, $aParams); - if ($default->queryLog->isDebugEnabled()) + if (isset($default->queryLog) && $default->queryLog->isDebugEnabled()) { $default->queryLog->debug(DBUtil::lastQuery($db)); } -- libgit2 0.21.4