From: Philipp Date: Sat, 7 Jan 2023 14:49:55 +0000 (+0100) Subject: omg .. wrong assertion .. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6bd1740a94a694ca4fcb8ef21ee9536a80925f8f;p=friendica.git omg .. wrong assertion .. --- diff --git a/src/Core/Config/Util/ConfigFileManager.php b/src/Core/Config/Util/ConfigFileManager.php index 9e07d27aec..f3627cf477 100644 --- a/src/Core/Config/Util/ConfigFileManager.php +++ b/src/Core/Config/Util/ConfigFileManager.php @@ -260,7 +260,7 @@ class ConfigFileManager * (as is the case with 'x'). The file pointer is positioned on the beginning of the file. * */ - if (($configStream = @fopen($filename, 'c+')) !== false) { + if (($configStream = @fopen($filename, 'c+')) === false) { throw new ConfigFileException(sprintf('Cannot open file "%s" in mode c+', $filename)); }