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:
@@ -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">';
|
||||
|
||||
Reference in New Issue
Block a user