MDL-45074 report_loglive Fix parameter typo
[moodle.git] / report / loglive / classes / table_log.php
index 489d8fb..04614b6 100644 (file)
@@ -319,7 +319,7 @@ class report_loglive_table_log extends table_sql {
             $params['date'] = $this->filterparams->date;
         }
 
-        if (!empty($this->filterparams->date)) {
+        if (isset($this->filterparams->anonymous)) {
             $joins[] = "anonymous = :anon";
             $params['anon'] = $this->filterparams->anonymous;
         }