MDL-45074 report_loglive Fix parameter typo
authorAnkit Agarwal <ankit@moodle.com>
Mon, 14 Apr 2014 08:31:54 +0000 (16:31 +0800)
committerAnkit Agarwal <ankit@moodle.com>
Mon, 14 Apr 2014 08:31:54 +0000 (16:31 +0800)
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;
         }