From: Andreas Unterkircher Date: Mon, 12 May 2008 06:01:18 +0000 (+0200) Subject: check if parameter of ts2str is really numeric X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d867f5190b42114820df35143a46c8bc8521404;p=phpfspot.git check if parameter of ts2str is really numeric Signed-off-by: Andreas Unterkircher --- 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() /**