mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-12-13 11:34:52 +00:00
Maybe it's null?
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user