Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 156f6e16 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: strtotime(): passing null to parameter #1

Übergeordneter 19c6dc87
No related branches found
No related tags found
2 Merge Requests!22Update 'next-3.x' with latest changes from 'main',!21Next 2.x
...@@ -13,8 +13,8 @@ QUI::$Ajax->registerFunction( ...@@ -13,8 +13,8 @@ QUI::$Ajax->registerFunction(
$list = $CronManager->getList(); $list = $CronManager->getList();
$Locale = QUI::getLocale(); $Locale = QUI::getLocale();
$Formatter = $Locale->getDateFormatter( $Formatter = $Locale->getDateFormatter(
\IntlDateFormatter::SHORT, IntlDateFormatter::SHORT,
\IntlDateFormatter::SHORT IntlDateFormatter::SHORT
); );
foreach ($list as $key => $cron) { foreach ($list as $key => $cron) {
...@@ -23,7 +23,11 @@ QUI::$Ajax->registerFunction( ...@@ -23,7 +23,11 @@ QUI::$Ajax->registerFunction(
$list[$key]['title'] = $Locale->get($locale[0], $locale[1]); $list[$key]['title'] = $Locale->get($locale[0], $locale[1]);
} }
$list[$key]['lastexec'] = $Formatter->format(\strtotime($list[$key]['lastexec'])); if (!empty($list[$key]['lastexec'])) {
$list[$key]['lastexec'] = $Formatter->format(strtotime($list[$key]['lastexec']));
} else {
$list[$key]['lastexec'] = '';
}
} }
return $list; return $list;
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren