Re: count()

We only need to include the 2 changes made by @notrinos.
The inclusion of the has already been done in other places.

Committed to repo 2.4.7 stable.


Re: count()

All reporting/repXXX.php files call the reporting/includes/ based on destination chosen in the report request form.

All reporting/repXXX.php files are called only from reporting/reports_main.php which in turn "includes" the includes/ and that in turn "includes" the includes/ui/ file (among others) that defines the function count_array().

Hence no need for separate inclusion of includes/ui/ except when the reports are used independent of the above file.

Wonder why Line 374 was left out from such a change in reporting/includes/

        $count = count($this->headers2);