From 4504a76990aebf536c14501cf71907ae546d9c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Tue, 14 Jul 2009 18:56:47 +0000 Subject: Remove all nested functions decalaration seems php does not like them! Make all the nested functions real functions. --- usr/local/www/services_captiveportal_ip_edit.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr/local/www/services_captiveportal_ip_edit.php') diff --git a/usr/local/www/services_captiveportal_ip_edit.php b/usr/local/www/services_captiveportal_ip_edit.php index 19e2595..0810077 100755 --- a/usr/local/www/services_captiveportal_ip_edit.php +++ b/usr/local/www/services_captiveportal_ip_edit.php @@ -35,13 +35,13 @@ ##|*MATCH=services_captiveportal_ip_edit.php* ##|-PRIV +function allowedipscmp($a, $b) { + return strcmp($a['ip'], $b['ip']); +} + function allowedips_sort() { global $g, $config; - function allowedipscmp($a, $b) { - return strcmp($a['ip'], $b['ip']); - } - usort($config['captiveportal']['allowedip'],"allowedipscmp"); } -- cgit v1.1