* Simple rate limiter for edits and page moves; set $wgRateLimits
[lhc/web/wiklou.git] / includes / SpecialSpecialpages.php
index 78fb177..265af2f 100644 (file)
@@ -43,6 +43,11 @@ function wfSpecialSpecialpages() {
 function wfSpecialSpecialpages_gen($pages,$heading,$sk) {
        global $wgLang, $wgOut, $wgSortSpecialPages;
 
+       if( count( $pages ) == 0 ) {
+               # Yeah, that was pointless. Thanks for coming.
+               return;
+       }
+       
        /** Put them into a sortable array */
        $sortedPages = array();
        foreach ( $pages as $name => $page ) {