summaryrefslogtreecommitdiffstats
path: root/system/helpers/date_helper.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2009-03-11 18:01:14 +0100
committerDerek Jones <derek.jones@ellislab.com>2009-03-11 18:01:14 +0100
commit1322ec54289f09f7e176924902d5642f269aec48 (patch)
tree96df3c6bc3d27d3a494b67f9f855850d600e4323 /system/helpers/date_helper.php
parent28e5c8fc0ed79017a67b896613698e98fa7da8b3 (diff)
ereg eradication
Diffstat (limited to 'system/helpers/date_helper.php')
-rw-r--r--system/helpers/date_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/date_helper.php b/system/helpers/date_helper.php
index dbd7e0ecc..7f6073427 100644
--- a/system/helpers/date_helper.php
+++ b/system/helpers/date_helper.php
@@ -460,7 +460,7 @@ if ( ! function_exists('human_to_unix'))
$hour = (strlen($ex['0']) == 1) ? '0'.$ex['0'] : $ex['0'];
$min = (strlen($ex['1']) == 1) ? '0'.$ex['1'] : $ex['1'];
- if (isset($ex['2']) AND ereg("[0-9]{1,2}", $ex['2']))
+ if (isset($ex['2']) && preg_match('/[0-9]{1,2}/', $ex['2']))
{
$sec = (strlen($ex['2']) == 1) ? '0'.$ex['2'] : $ex['2'];
}