diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout/Footer.php b/emhttp/plugins/dynamix/include/DefaultPageLayout/Footer.php index 5563991f7..26251b7f4 100644 --- a/emhttp/plugins/dynamix/include/DefaultPageLayout/Footer.php +++ b/emhttp/plugins/dynamix/include/DefaultPageLayout/Footer.php @@ -2,13 +2,12 @@ function releaseDateYear() { global $var; + $date = new DateTime(); $timestamp = _var($var, 'regBuildTime', ''); - if (!$timestamp) { - return ''; + if ($timestamp) { + $date->setTimestamp($timestamp); } - $date = new DateTime(); - $date->setTimestamp($timestamp); return $date->format('Y'); }