mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 08:52:45 +00:00
Maybe it's null?
This commit is contained in:
parent
320aa974bc
commit
4c61258013
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user