Index: trunk/extensions/ParserFunctions/ParserFunctions.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | }
|
44 | 44 |
|
45 | 45 | function rand( &$parser, $min = 1, $max = 100 ) {
|
46 | | - return mt_rand( $min, $max );
|
| 46 | + return mt_rand( intval( $min ), intval( $max ) );
|
47 | 47 | }
|
48 | 48 | }
|
49 | 49 |
|