From 1322ec54289f09f7e176924902d5642f269aec48 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 11 Mar 2009 17:01:14 +0000 Subject: ereg eradication --- system/helpers/date_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/helpers') 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']; } -- cgit v1.2.3-24-g4f1b