From e551e7474172a16dd59ff67879fea0537b18692d Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 16 Feb 2023 20:29:21 +0000 Subject: [PATCH] logic --- ext/log_console/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/log_console/main.php b/ext/log_console/main.php index 30c45652..46bd99b8 100644 --- a/ext/log_console/main.php +++ b/ext/log_console/main.php @@ -80,7 +80,7 @@ class LogConsole extends Extension } else { $str = "$str\n"; } - if (!defined("UNITTEST") && PHP_SAPI !== 'cli' || PHP_SAPI !== 'phpdbg') { + if (!defined("UNITTEST") && PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') { $fp = fopen("/dev/tty", "w"); fwrite($fp, $str); fclose($fp);