From 3d867f5190b42114820df35143a46c8bc8521404 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Mon, 12 May 2008 08:01:18 +0200 Subject: [PATCH 1/1] check if parameter of ts2str is really numeric Signed-off-by: Andreas Unterkircher --- phpfspot.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() /** -- 2.25.1