do not try to log to sql on old schema version

This commit is contained in:
Andrew Dolgov 2013-04-17 21:39:47 +04:00
parent d9c85e0f11
commit 512b779391
1 changed files with 1 additions and 1 deletions

View 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);