« MODx Parse Error »

MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
 
PHP error debug
  Error: array_rand() [function.array-rand]: Second argument has to be between 1 and the number of elements in the array 
  Error type/ Nr.: Warning - 2 
  File: /vol/www/assets/snippets/wizard101/general_functions.inc.php 
  Line: 177 
  Line 177 source: $row_num= array_rand($row,$max_num);  
 
Parser timing
  MySQL: 0.0119 s(11 Requests)
  PHP: 0.0188 s 
  Total: 0.0307 s