From ea215fbff28ce882566577a52ed39bd311b158a3 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 14 Sep 2009 21:19:13 +0100 Subject: [PATCH] split() is deprecated in php5.3 --- core/util.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/util.inc.php b/core/util.inc.php index 218f78ac..d0a23557 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -428,7 +428,7 @@ function array_iunique($array) { * @retval bool */ function ip_in_range($IP, $CIDR) { - list ($net, $mask) = split ("/", $CIDR); + list ($net, $mask) = explode("/", $CIDR); $ip_net = ip2long ($net); $ip_mask = ~((1 << (32 - $mask)) - 1); @@ -680,7 +680,7 @@ function _get_query_parts() { $path = substr($path, 1); } - $parts = split('/', $path); + $parts = explode('/', $path); if(strpos($path, "^") === FALSE) { return $parts;