]> git.mjollnir.org Git - moodle.git/commitdiff
Search for any 'view%' string in the module log, instead
authorstronk7 <stronk7>
Sun, 23 Nov 2003 11:15:37 +0000 (11:15 +0000)
committerstronk7 <stronk7>
Sun, 23 Nov 2003 11:15:37 +0000 (11:15 +0000)
of exact matching.

course/outline_rep.php

index 1fcf763b02f7feb0ab2405fe4140ea6aad2d6d82..d995b67ba1368a32ba866e35046ca7c16ab9d988 100644 (file)
@@ -81,7 +81,7 @@
 
                     $result = null;
                     if ($logs = get_records_select("log", "module='$mod->modname'
-                                           AND action='view' AND info='$mod->instance'", "time ASC")) {
+                                           AND action LIKE 'view%' AND info='$mod->instance'", "time ASC")) {
 
                         $numviews = count($logs);
                         $lastlog = array_pop($logs);