summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_ip_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/services_captiveportal_ip_edit.php')
-rwxr-xr-xusr/local/www/services_captiveportal_ip_edit.php8
1 files changed, 4 insertions, 4 deletions
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");
}
OpenPOWER on IntegriCloud