Revert "Update shared.make_timestamp.php"
authorbradymiller <bradymiller@users.sourceforge.net>
Wed, 21 Aug 2013 04:10:13 +0000 (20 21:10 -0700)
committerbradymiller <bradymiller@users.sourceforge.net>
Wed, 21 Aug 2013 04:10:13 +0000 (20 21:10 -0700)
library/plugins/shared.make_timestamp.php

index f557c7f..acdd777 100644 (file)
@@ -18,15 +18,7 @@ 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;