Coding error detected, it must be fixed by a programmer: clean_param() can not process arrays, please use clean_param_array() instead.

Re: Coding error detected, it must be fixed by a programmer: clean_param() can not process arrays, please use clean_param_array() instead.

by James Todd -
Number of replies: 0

I'm getting the same error but only on reports where the date filter is on.

this worked


Replaced lines 165 - 167

$key = clean_param($key, PARAM_CLEANHTML);

                        $val = clean_param($val, PARAM_CLEANHTML);

                        $formdata->{$key} = $val;

with


$key = clean_param($key, PARAM_CLEANHTML);
if (is_array($val)) {
      $val = clean_param_array($val, PARAM_CLEANHTML);
 } else {
       $val = clean_param($val, PARAM_CLEANHTML);
 }



Thanks

John


Average of ratings: Useful (1)