From 1fe93116b56893bf8413dc80e67de80768891a75 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 18 Apr 2006 20:38:58 +0000 Subject: [PATCH] Never trust preferences --- includes/SpecialWatchlist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 368030d653..16431d837d 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -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 = ''; -- 2.20.1