Skip to content
Permalink
Browse files

Replace function is_integer (alias) by is_int.

Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information...
jrbasso authored and markstory committed Nov 19, 2009
1 parent 9dcac18 commit 9b6b258fede89ec09275234270fe6ee0e2d61af1
Showing with 2 additions and 2 deletions.
  1. +1 −1 cake/libs/controller/components/cookie.php
  2. +1 −1 cake/libs/view/helpers/time.php
@@ -348,7 +348,7 @@ function __expire($expires = null) {
return $this->__expires;
}
$this->__reset = $this->__expires;
if (is_integer($expires) || is_numeric($expires)) {
if (is_int($expires) || is_numeric($expires)) {
return $this->__expires = $now + intval($expires);
}
return $this->__expires = strtotime($expires, $now);
@@ -63,7 +63,7 @@ function fromString($dateString, $userOffset = null) {
if (empty($dateString)) {
return false;
}
if (is_integer($dateString) || is_numeric($dateString)) {
if (is_int($dateString) || is_numeric($dateString)) {
$date = intval($dateString);
} else {
$date = strtotime($dateString);

0 comments on commit 9b6b258

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.