From 512b7793917230e37e47e9a68a243053189cb846 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 17 Apr 2013 21:39:47 +0400 Subject: [PATCH] do not try to log to sql on old schema version --- classes/logger/sql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/logger/sql.php b/classes/logger/sql.php index 4d1f12065..50e5de9a6 100644 --- a/classes/logger/sql.php +++ b/classes/logger/sql.php @@ -5,7 +5,7 @@ class Logger_SQL { if ($errno == E_NOTICE) return false; - if (Db::get()) { + if (Db::get() && get_schema_version() > 117) { $errno = Db::get()->escape_string($errno); $errstr = Db::get()->escape_string($errstr);