]> git.mxchange.org Git - friendica.git/commitdiff
Fix logic
authorPhilipp <admin@philipp.info>
Mon, 13 Feb 2023 10:34:32 +0000 (11:34 +0100)
committerPhilipp <admin@philipp.info>
Mon, 13 Feb 2023 10:34:32 +0000 (11:34 +0100)
src/Core/Logger/Type/StreamLogger.php

index 6a90f2e12046d3ab330c72bb67b2294ed2913849..d56f5b20ef6fd2b8fa001f20d9ab811597f1efea 100644 (file)
@@ -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));
                }