]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Display the redirector link on the top users page
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 13 Feb 2011 16:26:50 +0000 (16:26 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 13 Feb 2011 16:26:50 +0000 (16:26 +0000)
The previous commit (svn 518) disabled the link from the top user list
to the redirector page.

Thanks to Arnaud Florent for locating the cause of the problem.

report.c

index a659890c869a2826721dcf317b3a20592cdef89f..d1d9a8c2f830db175e3a506b87740d7679841850 100644 (file)
--- a/report.c
+++ b/report.c
@@ -352,8 +352,6 @@ void gerarel(void)
        if (!indexonly) tmpsort();
 
        if(email[0] == '\0') {
-               topuser();
-
                if (!indexonly) {
                        if((ReportType & REPORT_TYPE_DOWNLOADS) != 0) download_report();
 
@@ -362,7 +360,11 @@ void gerarel(void)
                        }
 
                        squidguard_log();
+               }
 
+               topuser();
+
+               if (!indexonly) {
                        if((ReportType & REPORT_TYPE_TOPSITES) != 0) topsites();
 
                        if((ReportType & REPORT_TYPE_SITES_USERS) != 0) siteuser();