From 8a04169213088a77e0c35d0ab8a3828b5babc598 Mon Sep 17 00:00:00 2001 From: garcianc Date: Mon, 15 Apr 2013 21:17:50 -0300 Subject: [PATCH] Update shared.make_timestamp.php --- library/plugins/shared.make_timestamp.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/plugins/shared.make_timestamp.php b/library/plugins/shared.make_timestamp.php index acdd77735..f557c7ff8 100644 --- a/library/plugins/shared.make_timestamp.php +++ b/library/plugins/shared.make_timestamp.php @@ -18,7 +18,15 @@ function smarty_make_timestamp($string) if(empty($string)) { $string = "now"; } + + //the following if block catches when $string passed is already numeric + if(is_numeric($string)){ + $time=$string; + } + else{ $time = strtotime($string); + } + if (is_numeric($time) && $time != -1) return $time; -- 2.11.4.GIT