From 33559103ddf02648837c85ed72425ac06c06080c Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Mon, 2 Feb 2009 18:50:38 +0000 Subject: replaced all sizeof() in favor of count() - aliases are teh sux0r --- system/helpers/url_helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/helpers/url_helper.php') diff --git a/system/helpers/url_helper.php b/system/helpers/url_helper.php index 9b449ea9e..6c3bc837a 100644 --- a/system/helpers/url_helper.php +++ b/system/helpers/url_helper.php @@ -382,7 +382,7 @@ if ( ! function_exists('auto_link')) { $pop = ($popup == TRUE) ? " target=\"_blank\" " : ""; - for ($i = 0; $i < sizeof($matches['0']); $i++) + for ($i = 0; $i < count($matches['0']); $i++) { $period = ''; if (preg_match("|\.$|", $matches['6'][$i])) @@ -408,7 +408,7 @@ if ( ! function_exists('auto_link')) { if (preg_match_all("/([a-zA-Z0-9_\.\-\+Å]+)@([a-zA-Z0-9\-]+)\.([a-zA-Z0-9\-\.]*)/i", $str, $matches)) { - for ($i = 0; $i < sizeof($matches['0']); $i++) + for ($i = 0; $i < count($matches['0']); $i++) { $period = ''; if (preg_match("|\.$|", $matches['3'][$i])) -- cgit v1.2.3-24-g4f1b