Merge "includes: Replace implicit Bugzilla bug numbers with Phab ones"
[lhc/web/wiklou.git] / includes / resourceloader / ResourceLoaderWikiModule.php
index 7ec91cd..b0d060b 100644 (file)
@@ -357,6 +357,11 @@ class ResourceLoaderWikiModule extends ResourceLoaderModule {
                        }
                }
 
+               if ( !$wikiModules ) {
+                       // Nothing to preload
+                       return;
+               }
+
                $pageNames = array_keys( $allPages );
                sort( $pageNames );
                $hash = sha1( implode( '|', $pageNames ) );