From 62818d102db4b57d9d1739e30fd33a20a1920fcb Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 9 Aug 2017 14:23:44 +0200 Subject: [PATCH] fix --- src/danog/MadelineProto/Logger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/Logger.php b/src/danog/MadelineProto/Logger.php index 1a115b12..2af1bd40 100644 --- a/src/danog/MadelineProto/Logger.php +++ b/src/danog/MadelineProto/Logger.php @@ -126,7 +126,7 @@ class Logger self::$colors[self::ERROR] = implode(';', [self::foreground['white'], self::set['bold'], self::background['red']]); self::$colors[self::FATAL_ERROR] = implode(';', [self::foreground['red'], self::set['bold'], self::background['light_gray']]); try { - self::$isatty = defined('STDOUT') && posix_isatty(STDOUT); + self::$isatty = defined('STDOUT') && function_exists('posix_isatty') && posix_isatty(STDOUT); } catch (\danog\MadelineProto\Exception $e) { } }