From 324aef9f6f80e7d1b34f1af2487ab03eebc66f47 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 10 Mar 2021 21:31:57 +0300 Subject: [PATCH] route Logger:log() to user_error() if there's no adapter --- classes/logger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/logger.php b/classes/logger.php index f8abb5f84..42ab4452c 100755 --- a/classes/logger.php +++ b/classes/logger.php @@ -46,7 +46,7 @@ class Logger { if ($this->adapter) return $this->adapter->log_error($errno, $errstr, '', 0, $context); else - return false; + return user_error($errstr, $errno); } private function __clone() {