$joins[] = "l.module = '$modname'";
}
- if ($modid and is_int($modid)) {
- $joins[] = "l.cmid = '$modid'";
- } else if ('site_errors' === $modid) {
+ if ('site_errors' === $modid) {
$joins[] = "l.action='error'";
+ } else if ($modid) {
+ $joins[] = "l.cmid = '$modid'";
}
if ($modaction) {
$totalcount = 0; // Initialise
+ $db->debug = true;
if (!$logs = get_logs($selector, $order, $page*$perpage, $perpage, $totalcount)) {
notify("No logs found!");
print_footer($course);
exit;
}
+ $db->debug = false;
$count=0;
$ldcache = array();
$tt = getdate(time());