diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-08 23:42:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-08 23:42:18 +0000 |
commit | 9c704188010c2efe706d32fa2bfe71115c971941 (patch) | |
tree | 920185bb86f63eaa88df7f296f61c7ffb7001200 | |
parent | 61fb3da06aec8a2a839332e29a24174bc844578c (diff) | |
download | pfsense-9c704188010c2efe706d32fa2bfe71115c971941.zip pfsense-9c704188010c2efe706d32fa2bfe71115c971941.tar.gz |
Create an array if the original is empty
-rwxr-xr-x | usr/local/www/system_advanced.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php index 79de715..a86c40e 100755 --- a/usr/local/www/system_advanced.php +++ b/usr/local/www/system_advanced.php @@ -174,7 +174,6 @@ if ($_POST) { $etc_ttys = return_filename_as_array("/etc/ttys"); $boot_loader_rc = return_filename_as_array("/boot/loader.rc"); - conf_mount_rw(); $fout = fopen("/etc/ttys","w"); @@ -188,6 +187,8 @@ if ($_POST) { fclose($fout); $fout = fopen("/boot/loader.rc","w"); + if(!is_array($boot_loader_rc)) + $boot_loader_rc = array(); foreach($boot_loader_rc as $blrc) { if(stristr($blrc,"comconsole") <> true) { fwrite($fout, $blrc . "\n"); |