Skip to content

Commit f08efe2

Browse files
committed
add default config
1 parent 94ceba9 commit f08efe2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Ubiquity/mailer/MailerManager.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,12 @@ public static function saveConfig($config) {
8888
}
8989

9090
public static function loadConfig() {
91-
return self::$config = \array_merge(self::$dConfig, include self::getConfigPath());
91+
$path = self::getConfigPath();
92+
$config = [];
93+
if (\file_exists($path)) {
94+
$config = include self::getConfigPath();
95+
}
96+
return self::$config = \array_merge(self::$dConfig, $config);
9297
}
9398

9499
public static function send(AbstractMail $mail): bool {

0 commit comments

Comments
 (0)