The creation of the users's report was failing when indexonly was set
because the list of the users to process is taken from memory instead
of collecting it from the files in the output directory.
As no temporary file is created when indexonly is set, the output
directory is empty but as the users's name are still stored in memory,
sarg tried to read the non existant file and aborted.
squidguard_report();
- if((ReportType & REPORT_TYPE_USERS_SITES) != 0) htmlrel();
+ if(!indexonly && (ReportType & REPORT_TYPE_USERS_SITES) != 0) htmlrel();
make_index();