echo "<th class=\"c5 header\">".get_string('info')."</th>\n";
echo "</tr>\n";
+ if (empty($logs['logs'])) {
+ echo "</table>\n";
+ return;
+ }
+
$row = 1;
foreach ($logs['logs'] as $log) {
echo get_string('savedat').userdate(time(), $strftimedatetime)."\n";
echo $text;
+ if (empty($logs['logs'])) {
+ return true;
+ }
+
foreach ($logs['logs'] as $log) {
if (isset($ldcache[$log->module][$log->action])) {
$ld = $ldcache[$log->module][$log->action];
}
}
+ if (empty($logs['logs'])) {
+ $workbook->close();
+ return true;
+ }
+
$formatDate =& $workbook->add_format();
$formatDate->set_num_format(get_string('log_excel_date_format'));