Merge branch 'sprint/fix-92' into 'master'

* Fix GH-92: Uncaught TypeError: Unsupported operand types: array + null.

See merge request easycorp/zentaopms!5745
This commit is contained in:
朱金勇
2022-10-13 04:13:42 +00:00
+2 -1
View File
@@ -488,7 +488,8 @@ class block extends control
return true;
}
$blocks = json_decode($blocks, true);
$blocks = json_decode($blocks, true);
if(empty($blocks)) $blocks = array();
$blockPairs = array('' => '') + $blocks;
echo '<div class="form-group">';