Browse Source

fix option value if not set

CauseFX 4 years ago
parent
commit
25cdfa70cf
1 changed files with 1 additions and 1 deletions
  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':