Jelajahi Sumber

fix Config merge with project config

Piotr Labudda 6 tahun lalu
induk
melakukan
f30ad5447d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      SE/se-lib/Config.php

+ 1 - 1
SE/se-lib/Config.php

@@ -66,7 +66,7 @@ class Config {
 				if (file_exists("{$projPath}/config.php")) {
 					$projConfig = include "{$projPath}/config.php";
 					if (!empty($projConfig)) {
-						$_main_config = array_merge($_main_config, $projConfig);
+						$_main_config = array_merge($_main_config ? $_main_config : [], $projConfig);
 					}
 				}
 			}