Revision ddfda1d6
Added by Jim Pingle over 6 years ago
src/etc/inc/pfsense-utils.inc | ||
---|---|---|
2794 | 2794 |
function filter_rules_sort() { |
2795 | 2795 |
global $config; |
2796 | 2796 |
|
2797 |
init_config_arr(array('filter', 'rule')); |
|
2797 | 2798 |
/* mark each rule with the sequence number (to retain the order while sorting) */ |
2798 | 2799 |
for ($i = 0; isset($config['filter']['rule'][$i]); $i++) { |
2799 | 2800 |
if (!is_array($config['filter']['rule'][$i])) { |
Also available in: Unified diff
Prevent a reference error w/o rules in the config. Fixes #8993
(cherry picked from commit 67807c9536ae1810a067155049c96e8d2b634777)