« MODx Parse Error »

MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
 
PHP error debug
  Error: trim() expects parameter 1 to be string, array given 
  Error type/ Nr.: Warning - 2 
  File: /homepages/u39436/assets/snippets/functions.inc.php 
  Line: 458 
  Line 458 source: if(!isset($parms[$need]) || (trim($parms[$need])=="") || empty($parms[$need])) $errorEmpty=true;  
 
Parser timing
  MySQL: 0.0049 s(2 Requests)
  PHP: 0.0199 s 
  Total: 0.0248 s