r13522 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r13521‎ | r13522 | r13523 >
Date:08:30, 6 April 2006
Author:tstarling
Status:old
Tags:
Comment:
intval
Modified paths:
  • /trunk/extensions/ParserFunctions/ParserFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ParserFunctions/ParserFunctions.php
@@ -42,7 +42,7 @@
4343 }
4444
4545 function rand( &$parser, $min = 1, $max = 100 ) {
46 - return mt_rand( $min, $max );
 46+ return mt_rand( intval( $min ), intval( $max ) );
4747 }
4848 }
4949

Status & tagging log