Revision 6fb33591
Added by Stephen Jones about 7 years ago
src/usr/local/www/system_routes.php | ||
---|---|---|
35 | 35 |
require_once("filter.inc"); |
36 | 36 |
require_once("shaper.inc"); |
37 | 37 |
|
38 |
if (!is_array($config['staticroutes'])) { |
|
39 |
$config['staticroutes'] = array(); |
|
40 |
} |
|
41 |
|
|
38 | 42 |
if (!is_array($config['staticroutes']['route'])) { |
39 | 43 |
$config['staticroutes']['route'] = array(); |
40 | 44 |
} |
Also available in: Unified diff
Enforce array type for PHP 7.2 Migration