diff options
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r-- | phpfspot.class.php | 4 |
1 files changed, 3 insertions, 1 deletions
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() /** |