]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not try to log to sql on old schema version
authorAndrew Dolgov <fox@fakecake.org>
Wed, 17 Apr 2013 17:39:47 +0000 (21:39 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Wed, 17 Apr 2013 17:39:47 +0000 (21:39 +0400)
classes/logger/sql.php

index 4d1f12065e7810c3fb001c3d7beed549aea026cb..50e5de9a6e246bc64788ab85f4eedf0ba870efeb 100644 (file)
@@ -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);