X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=f64e9ff2ef70f7d7195b5f811205cd72512660d0;hp=6dcc8dee872d3d83453fed1b6424392bd57a86ea;hb=3d867f5190b42114820df35143a46c8bc8521404;hpb=48b46c22412ee4e388140ed0b78504e7b84d9d23 diff --git a/phpfspot.class.php b/phpfspot.class.php index 6dcc8de..f64e9ff 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -2710,7 +2710,9 @@ class PHPFSPOT { */ private function ts2str($timestamp) { - return strftime("%Y-%m-%d", $timestamp); + if(!empty($timestamp) && is_numeric($timestamp)) + return strftime("%Y-%m-%d", $timestamp); + } // ts2str() /**