summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-05-12 08:01:18 +0200
committerAndreas Unterkircher <unki@netshadow.at>2008-05-12 08:01:18 +0200
commit3d867f5190b42114820df35143a46c8bc8521404 (patch)
tree94aebf2ee4f5fd349b95464cad112a0aa2f30277 /phpfspot.class.php
parent48b46c22412ee4e388140ed0b78504e7b84d9d23 (diff)
check if parameter of ts2str is really numeric
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php4
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()
/**