mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-09 14:02:54 +09:00
Correct two minor issues with lib/installer.php
This commit is contained in:
1 parent
5c70c32eed
commit
3df2b7c6b8
1 file changed
+3
-3
+3
-3
@@ -954,9 +954,9 @@ class Installer implements JsonSerializable {
|
||||
if (isset($this->extensions) || empty($this->extensions)) {
|
||||
$extensions = utility_php_extensions();
|
||||
|
||||
foreach ($extensions as $e) {
|
||||
foreach ($extensions as $name => $e) {
|
||||
if (!$e['installed']) {
|
||||
$this->addError(Installer::STEP_CHECK_DEPENDENCIES, 'Modules', $e['name'] . ' is missing');
|
||||
$this->addError(Installer::STEP_CHECK_DEPENDENCIES, 'Modules', $name . ' is missing');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1128,7 +1128,7 @@ class Installer implements JsonSerializable {
|
||||
log_install_high('tables',"setTables(): Checking table '$name' against key $key ...");
|
||||
log_install_debug('tables',"setTables(): Table: ". clean_up_lines(var_export($known, true)));
|
||||
$set = false;
|
||||
if (!array_key_exist($key, $param_tables)) {
|
||||
if (!array_key_exists($key, $param_tables)) {
|
||||
$param_tables[$key] = null;
|
||||
}
|
||||
$this->setTrueFalse($param_tables[$key], $set, 'table_'.$name, false);
|
||||
|
||||
Reference in new issue
Block a user