Never trust preferences
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 18 Apr 2006 20:38:58 +0000 (20:38 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 18 Apr 2006 20:38:58 +0000 (20:38 +0000)
includes/SpecialWatchlist.php

index 368030d..16431d8 100644 (file)
@@ -262,7 +262,7 @@ function wfSpecialWatchlist( $par ) {
   # Toggle watchlist content (all recent edits or just the latest)
        if( $wgUser->getOption( 'extendwatchlist' )) {
                $andLatest=''; 
-               $limitWatchlist = 'LIMIT ' . $wgUser->getOption( 'wllimit' );
+               $limitWatchlist = 'LIMIT ' . intval( $wgUser->getOption( 'wllimit' ) );
        } else {
                $andLatest= 'AND rc_this_oldid=page_latest';
                $limitWatchlist = '';