diff options
author | Ermal <eri@pfsense.org> | 2010-12-23 20:07:59 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-12-23 20:07:59 +0000 |
commit | 5af3a589353d9b1cbdb8097e03c75a842043f3d0 (patch) | |
tree | 20cc8608cddb83aa69805d58b6d7a2b3a0e08211 /etc/inc/config.lib.inc | |
parent | e503c44a755a52648da77585517ced6d506258e6 (diff) | |
download | pfsense-5af3a589353d9b1cbdb8097e03c75a842043f3d0.zip pfsense-5af3a589353d9b1cbdb8097e03c75a842043f3d0.tar.gz |
Add some more safe belts and remove code that is commented from long time now. Reported on http://forum.pfsense.org/index.php/topic,28202.15.html
Diffstat (limited to 'etc/inc/config.lib.inc')
-rw-r--r-- | etc/inc/config.lib.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc index fedb943..dbd8650 100644 --- a/etc/inc/config.lib.inc +++ b/etc/inc/config.lib.inc @@ -484,6 +484,9 @@ function write_config($desc="Unknown", $backup = true) { if($backup) backup_config(); + if (!is_array($config['revision'])) + $config['revision'] = array(); + if (time() > mktime(0, 0, 0, 9, 1, 2004)) /* make sure the clock settings are plausible */ $config['revision']['time'] = time(); @@ -837,4 +840,4 @@ function set_device_perms() { } } -?>
\ No newline at end of file +?> |