Fixed 'Cannot unset string offsets' if AdminBaseController::getPost($post) is not array

This commit is contained in:
Matias Griese
2017-11-13 12:39:22 +02:00
parent 66c46760e1
commit b3958597c9

View File

@@ -610,6 +610,10 @@ class AdminBaseController
*/
protected function getPost($post)
{
if (!is_array($post)) {
return [];
}
unset($post['task']);
// Decode JSON encoded fields and merge them to data.