diff --git a/scripts/createsim.php b/scripts/createsim.php index 7435dcfeb2..14790aa8f3 100644 --- a/scripts/createsim.php +++ b/scripts/createsim.php @@ -118,7 +118,7 @@ function newNotice($i, $tagmax) if ($in_group == 0) { $groups = $user->getGroups(); if ($groups->N > 0) { - $gval = rand(0, $group->N - 1); + $gval = rand(0, $groups->N - 1); $groups->fetch(); // go to 0th for ($i = 0; $i < $gval; $i++) { $groups->fetch();