summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_mac_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/services_captiveportal_mac_edit.php')
-rwxr-xr-xusr/local/www/services_captiveportal_mac_edit.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/services_captiveportal_mac_edit.php b/usr/local/www/services_captiveportal_mac_edit.php
index c4e138f..da6e6b3 100755
--- a/usr/local/www/services_captiveportal_mac_edit.php
+++ b/usr/local/www/services_captiveportal_mac_edit.php
@@ -35,12 +35,12 @@
##|*MATCH=services_captiveportal_mac_edit.php*
##|-PRIV
-function passthrumacs_sort() {
- global $g, $config;
+function passthrumacscmp($a, $b) {
+ return strcmp($a['mac'], $b['mac']);
+}
- function passthrumacscmp($a, $b) {
- return strcmp($a['mac'], $b['mac']);
- }
+function passthrumacs_sort() {
+ global $config;
usort($config['captiveportal']['passthrumac'],"passthrumacscmp");
}
OpenPOWER on IntegriCloud