diff options
Diffstat (limited to 'config/vnstat2/vnstat2.inc')
-rw-r--r-- | config/vnstat2/vnstat2.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/vnstat2/vnstat2.inc b/config/vnstat2/vnstat2.inc index ff8307c9..dc3b67f5 100644 --- a/config/vnstat2/vnstat2.inc +++ b/config/vnstat2/vnstat2.inc @@ -38,8 +38,8 @@ function change_vnstat_conf(){ } function write_conf_f(){ -global $config; -$monthrotate = $config['installedpackages']['vnstat2']['config'][0]['monthrotate']; + global $config; + $monthrotate = $config['installedpackages']['vnstat2']['config'][0]['monthrotate']; // ************ Write new vnstat.conf ***************** @@ -127,6 +127,7 @@ shared_vnstat(); } function shared_vnstat() { + global $config; // get system nic's and create a database for them $array_of_real_nic_names = array(); $array_of_custom_nic_names = array(); |