]> git.wh0rd.org - tt-rss.git/blobdiff - classes/logger/sql.php
Merge branch 'master' of git://github.com/falu/Tiny-Tiny-RSS into falu-master
[tt-rss.git] / classes / logger / sql.php
index 888ef67ddf03c8c63aa7b076b3d618cc87c5bd40..c0f8b4598ba7841de29371e3ed7a6fd9d331bd3a 100644 (file)
@@ -2,17 +2,14 @@
 class Logger_SQL {
 
        function log_error($errno, $errstr, $file, $line, $context) {
-
-               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);
                        $file = Db::get()->escape_string($file);
                        $line = Db::get()->escape_string($line);
                        $context = ''; // backtrace is a lot of data which is not really critical to store
-                       //$context = db_escape_string(serialize($context));
+                       //$context = $this->dbh->escape_string(serialize($context));
 
                        $owner_uid = $_SESSION["uid"] ? $_SESSION["uid"] : "NULL";