ソースを参照

fix option value if not set

CauseFX 4 年 前
コミット
25cdfa70cf
1 ファイル変更1 行追加1 行削除
  1. 1 1
      api/functions/option-functions.php

+ 1 - 1
api/functions/option-functions.php

@@ -20,7 +20,7 @@ trait OptionsFunction
 		$type = strtolower(str_replace('-', '', $type));
 		$setting = [
 			'name' => $name,
-			'value' => $this->config[$name]
+			'value' => $this->config[$name] ?? ''
 		];
 		switch ($type) {
 			case 'enable':