summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-03 20:24:39 +0200
committeradmin <devnull@localhost>2006-09-03 20:24:39 +0200
commit1cf89aab5fff8c8068cbf0ed18038b6e4fd4f605 (patch)
tree18ee7e5d935161e64460f55a1ce8ddceb2cbe046 /system/helpers
parent6ac4bea2da9e64fb0b434f52177353f6bd65b8e6 (diff)
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/date_helper.php2
-rw-r--r--system/helpers/text_helper.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/date_helper.php b/system/helpers/date_helper.php
index c8205bb7d..ab3a31867 100644
--- a/system/helpers/date_helper.php
+++ b/system/helpers/date_helper.php
@@ -223,7 +223,7 @@ function days_in_month($month = 0, $year = '')
return 0;
}
- if ( ! ctype_digit($year) OR strlen($year) != 4)
+ if ( ! is_numeric($year) OR strlen($year) != 4)
{
$year = date('Y');
}
diff --git a/system/helpers/text_helper.php b/system/helpers/text_helper.php
index 15b5573bf..e4f816eb1 100644
--- a/system/helpers/text_helper.php
+++ b/system/helpers/text_helper.php
@@ -333,7 +333,7 @@ function highlight_phrase($str, $phrase, $tag_open = '<strong>', $tag_close = '<
*/
function word_wrap($str, $chars = '76')
{
- if ( ! ctype_digit($chars))
+ if ( ! is_numeric($chars))
$chars = 76;
$str = preg_replace("/(\r\n|\r|\n)/", "\n", $str);