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)); }