summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-07-09 15:51:55 +0000
committerErmal Luçi <eri@pfsense.org>2009-07-09 15:51:55 +0000
commit4b141b9abf7af9c30297781fc8f2d338127011f8 (patch)
treea9a46ed7a89940ee4c64b8bce2eb837374c849a8 /usr
parent3b184ca5501b7b8fc2467bb450984dcdf84f17fb (diff)
downloadpfsense-4b141b9abf7af9c30297781fc8f2d338127011f8.zip
pfsense-4b141b9abf7af9c30297781fc8f2d338127011f8.tar.gz
Declare as a propper function to avoid errors.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/firewall_schedule_edit.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/local/www/firewall_schedule_edit.php b/usr/local/www/firewall_schedule_edit.php
index aa88e2e..6e628ec 100644
--- a/usr/local/www/firewall_schedule_edit.php
+++ b/usr/local/www/firewall_schedule_edit.php
@@ -37,18 +37,17 @@
##|*MATCH=firewall_schedule_edit.php*
##|-PRIV
+function schedulecmp($a, $b) {
+ return strcmp($a['name'], $b['name']);
+}
+
function schedule_sort(){
global $g, $config;
if (!is_array($config['schedules']['schedule']))
return;
- function schedulecmp($a, $b) {
- return strcmp($a['name'], $b['name']);
- }
-
usort($config['schedules']['schedule'], "schedulecmp");
-
}
$pgtitle = array("Firewall","Schedules","Edit");
OpenPOWER on IntegriCloud