Maybe it's null?

This commit is contained in:
ruan 2016-08-14 19:47:03 +02:00
parent 320aa974bc
commit 4c61258013

View File

@ -300,7 +300,7 @@ class Page {
$ts = $millis / 1000; $ts = $millis / 1000;
$result = strftime($this->settings->date_format, $ts); $result = strftime($this->settings->date_format, $ts);
if ($result === "") { if ($result === "" || !is_string($result)) {
// Fallback to date() if strftime() doesn't work // Fallback to date() if strftime() doesn't work
return date("F j, Y, g:i A", $ts); return date("F j, Y, g:i A", $ts);
} }