File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments