Guest Posted November 19, 2002 Posted November 19, 2002 I have installed the latest snapshop , restored my db and all semms to be working fine , exept this : Warning: mt_rand(): Invalid range: 0..0 in /export/home/lummet.dk/www/catalog/includes/functions/general.php on line 1137 What is that , and how do i fix it. Belov is the code. // Return a random value function tep_rand($min = null, $max = null) { static $seeded; if (!$seeded) { mt_srand((double)microtime()*1000000); $seeded = true; } if (!isset($min) && !isset($max)) { return mt_rand(); } else { return mt_rand($min, $max); } } Hope some on knows the awnser to this :wink:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.