From: Frédéric Marchal Date: Thu, 27 Jan 2011 15:27:01 +0000 (+0000) Subject: Don't try to produce the users's report if indexonly is set X-Git-Tag: v2.3.2~87 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=01c698c958d339cfbc444d2d5f42f51f83275f2c;p=thirdparty%2Fsarg.git Don't try to produce the users's report if indexonly is set 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. --- diff --git a/report.c b/report.c index 2f86740..1f8543f 100644 --- a/report.c +++ b/report.c @@ -375,7 +375,7 @@ void gerarel(void) squidguard_report(); - if((ReportType & REPORT_TYPE_USERS_SITES) != 0) htmlrel(); + if(!indexonly && (ReportType & REPORT_TYPE_USERS_SITES) != 0) htmlrel(); make_index();