Skip to content

Commit c5a0d77

Browse files
committed
Fixed: the configuration cannot be null
1 parent 241fc25 commit c5a0d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Editor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function render()
1717
{
1818
$name = $this->formatName($this->column);
1919

20-
$config = Ueditor::config('config');
20+
$config = Ueditor::config('config') ?? [];
2121

2222
$config = json_encode(array_merge($config, $this->options));
2323

0 commit comments

Comments
 (0)