This commit is contained in:
Daniil Gentili 2017-08-09 14:23:44 +02:00
parent 4cf3c1b306
commit 62818d102d
1 changed files with 1 additions and 1 deletions

View File

@ -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) {
}
}