Merge "Simplify and unify the {{REVISIONID}} handling code in Parser"
[lhc/web/wiklou.git] / includes / installer / SqliteInstaller.php
index fa0d2a5..7d2898c 100644 (file)
@@ -332,10 +332,8 @@ EOT;
                        if ( !is_writable( $file ) ) {
                                return Status::newFatal( 'config-sqlite-readonly', $file );
                        }
-               } else {
-                       if ( file_put_contents( $file, '' ) === false ) {
-                               return Status::newFatal( 'config-sqlite-cant-create-db', $file );
-                       }
+               } elseif ( file_put_contents( $file, '' ) === false ) {
+                       return Status::newFatal( 'config-sqlite-cant-create-db', $file );
                }
 
                return Status::newGood();