summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 0b82acd..edfc7e1 100644
--- a/it.class
+++ b/it.class
@@ -723,7 +723,7 @@ static function date($format = "", $stamp = null)
if (!isset($stamp))
$stamp = time();
- else if (!is_int($stamp) && !ctype_digit($stamp) && (!is_float($stamp) || strstr($stamp, '.')))
+ else if (is_string($stamp) && !ctype_digit($stamp))
$stamp = strtotime($stamp);
list($name, $language) = explode(":", $format);