From: Andrew Dolgov Date: Wed, 17 Apr 2013 17:39:47 +0000 (+0400) Subject: do not try to log to sql on old schema version X-Git-Tag: 1.7.9~25^2~155^2~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=512b7793917230e37e47e9a68a243053189cb846;p=tt-rss.git do not try to log to sql on old schema version --- diff --git a/classes/logger/sql.php b/classes/logger/sql.php index 4d1f1206..50e5de9a 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);