From: Philipp Date: Mon, 13 Feb 2023 10:34:32 +0000 (+0100) Subject: Fix logic X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3894b6fa412b277f72cc941f7fe06283c03bee47;p=friendica.git Fix logic --- diff --git a/src/Core/Logger/Type/StreamLogger.php b/src/Core/Logger/Type/StreamLogger.php index 6a90f2e120..d56f5b20ef 100644 --- a/src/Core/Logger/Type/StreamLogger.php +++ b/src/Core/Logger/Type/StreamLogger.php @@ -92,7 +92,7 @@ class StreamLogger extends AbstractLogger implements IAmAStrategy $this->fileSystem = $fileSystem; $stream = $this->logfile ?? $config->get('system', 'logfile'); - if ((@file_exists($stream) && !@is_writable($stream)) || @is_writable(basename($stream))) { + if ((@file_exists($stream) && !@is_writable($stream)) && !@is_writable(basename($stream))) { throw new LoggerArgumentException(sprintf('%s is not a valid logfile', $stream)); }