Skip to content

Commit c8509bf

Browse files
author
Marius Cramer
committed
- allow partly configured autoinstall.ini
1 parent 6c1d241 commit c8509bf

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

install/install.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@
115115
include_once $cmd_opt['autoinstall'];
116116
} elseif($path_parts['extension'] == 'ini') {
117117
$tmp = ini_to_array(file_get_contents('autoinstall.ini'));
118+
if(!is_array($tmp['install'])) $tmp['install'] = array();
119+
if(!is_array($tmp['ssl_cert'])) $tmp['ssl_cert'] = array();
120+
if(!is_array($tmp['expert'])) $tmp['expert'] = array();
121+
if(!is_array($tmp['update'])) $tmp['update'] = array();
118122
$autoinstall = $tmp['install'] + $tmp['ssl_cert'] + $tmp['expert'] + $tmp['update'];
119123
unset($tmp);
120124
}

install/update.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@
120120
include_once $cmd_opt['autoinstall'];
121121
} elseif($path_parts['extension'] == 'ini') {
122122
$tmp = ini_to_array(file_get_contents('autoinstall.ini'));
123+
if(!is_array($tmp['install'])) $tmp['install'] = array();
124+
if(!is_array($tmp['ssl_cert'])) $tmp['ssl_cert'] = array();
125+
if(!is_array($tmp['expert'])) $tmp['expert'] = array();
126+
if(!is_array($tmp['update'])) $tmp['update'] = array();
123127
$autoinstall = $tmp['install'] + $tmp['ssl_cert'] + $tmp['expert'] + $tmp['update'];
124128
unset($tmp);
125129
}

0 commit comments

Comments
 (0)