summaryrefslogtreecommitdiffstats
path: root/apis
diff options
context:
space:
mode:
Diffstat (limited to 'apis')
-rw-r--r--apis/cron.inc.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/apis/cron.inc.php b/apis/cron.inc.php
index 0b1e92a9..03b6201f 100644
--- a/apis/cron.inc.php
+++ b/apis/cron.inc.php
@@ -14,7 +14,7 @@ define('CRON_KEY_STATUS', 'cron.key.status');
define('CRON_KEY_BLOCKED', 'cron.key.blocked');
// Crash report mode - used by system crontab entry
-if (($report = Request::get('crashreport', false, 'string'))) {
+if (($report = Request::get('crashreport', false, 'string')) !== false) {
$list = Property::getList(CRON_KEY_STATUS);
if (empty($list)) {
error_log('Cron crash report triggered but no cronjob marked active.');
@@ -62,10 +62,7 @@ function getJobStatus($id)
}
// Hooks by other modules
-/**
- * @param Hook $hook
- */
-function handleModule($hook)
+function handleModule(Hook $hook): void
{
global $cron_log_text;
$cron_log_text = '';