Elvis operator can be used.

(cherry picked from commit 6a3bf7c)
This commit is contained in:
Yuriy Pikhtarev 2017-05-05 00:58:40 +03:00 committed by Vasily Komrakov
commit 13e3cf6c0d
No known key found for this signature in database
GPG key ID: 558236680C20A69A
16 changed files with 33 additions and 33 deletions

View file

@ -102,7 +102,7 @@ foreach ($cron_jobs as $job) {
bb_log($msg . LOG_LF, CRON_LOG_DIR . '/' . CRON_LOG_FILE);
if ($cron_runtime_log) {
$runtime_log_file = ($job['log_file']) ? $job['log_file'] : $job['cron_script'];
$runtime_log_file = ($job['log_file']) ?: $job['cron_script'];
bb_log($cron_runtime_log . LOG_LF, CRON_LOG_DIR . '/' . basename($runtime_log_file));
}
}