summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_utils.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-05-28 21:26:44 +0200
committerAleksander Machniak <alec@alec.pl>2013-05-28 21:26:44 +0200
commit896e2b4e5193af26f7bfe8ad96f7a90b8d96c35e (patch)
tree71ffd86808436ec2ce059d7df3a333a6d9d63f3e /program/lib/Roundcube/rcube_utils.php
parent5383ad72dbe4f722b124f5b697e258ccb11c3c8c (diff)
Add more rcube_utils tests
Diffstat (limited to 'program/lib/Roundcube/rcube_utils.php')
-rw-r--r--program/lib/Roundcube/rcube_utils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_utils.php b/program/lib/Roundcube/rcube_utils.php
index 23f24a46a..29baa82f3 100644
--- a/program/lib/Roundcube/rcube_utils.php
+++ b/program/lib/Roundcube/rcube_utils.php
@@ -733,7 +733,7 @@ class rcube_utils
return mktime(0,0,0, intval($matches[2]), intval($matches[3]), intval($matches[1]));
}
else if (is_numeric($date)) {
- return $date;
+ return (int) $date;
}
// Clean malformed data
@@ -762,7 +762,7 @@ class rcube_utils
$date = implode(' ', $d);
}
- return $ts;
+ return (int) $ts;
}