registration: Allow the mtime of extension.json files to be zero
[lhc/web/wiklou.git] / includes / registration / ExtensionRegistry.php
index c91d6d6..a3684e8 100644 (file)
@@ -105,7 +105,7 @@ class ExtensionRegistry {
                                throw new Exception( "$path does not exist!" );
                        }
                        // @codeCoverageIgnoreStart
-                       if ( !$mtime ) {
+                       if ( $mtime === false ) {
                                $err = error_get_last();
                                throw new Exception( "Couldn't stat $path: {$err['message']}" );
                                // @codeCoverageIgnoreEnd