From 4c612580133be622f1066eb05f4bc4e06abd4abf Mon Sep 17 00:00:00 2001 From: ruan Date: Sun, 14 Aug 2016 19:47:03 +0200 Subject: [PATCH] Maybe it's null? --- inc/page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/page.php b/inc/page.php index 4487a07..3f23e4d 100644 --- a/inc/page.php +++ b/inc/page.php @@ -300,7 +300,7 @@ class Page { $ts = $millis / 1000; $result = strftime($this->settings->date_format, $ts); - if ($result === "") { + if ($result === "" || !is_string($result)) { // Fallback to date() if strftime() doesn't work return date("F j, Y, g:i A", $ts); }