diff --git a/course/lib.php b/course/lib.php
index 968d68f..d25dc0f 100644
--- a/course/lib.php
+++ b/course/lib.php
@@ -260,13 +260,18 @@ function build_logs_array($course, $user=0, $date=0, $order="l.time ASC", $limit
     }
 
     if ($modaction) {
-        $firstletter = substr($modaction, 0, 1);
-        if ($firstletter == '-') {
-            $joins[] = $DB->sql_like('l.action', ':modaction', false, true, true);
-            $params['modaction'] = '%'.substr($modaction, 1).'%';
-        } else {
-            $joins[] = $DB->sql_like('l.action', ':modaction', false);
-            $params['modaction'] = '%'.$modaction.'%';
+        $modactions = split(',', $modaction);
+        $cnt = 0;
+        foreach ($modactions as $modaction1) {
+            $cnt++;
+            $firstletter = substr($modaction1, 0, 1);
+            if ($firstletter == '-') {
+                $joins[] = $DB->sql_like('l.action', ':modaction'.$cnt, false, true, true);
+                $params['modaction'.$cnt] = '%'.substr($modaction1, 1).'%';
+            } else {
+                $joins[] = $DB->sql_like('l.action', ':modaction'.$cnt, false);
+                $params['modaction'.$cnt] = '%'.$modaction1.'%';
+            }
         }
     }
 
diff --git a/course/report/log/lib.php b/course/report/log/lib.php
index cef00a0..22f19b3 100644
--- a/course/report/log/lib.php
+++ b/course/report/log/lib.php
@@ -426,7 +426,7 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate='today'
         'add' => get_string('add'),
         'update' => get_string('update'),
         'delete' => get_string('delete'),
-        '-view' => get_string('allchanges')
+        '-view,-report' => get_string('allchanges')
     );
 
     // Get all the possible dates
