mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 03:16:11 +01:00
Fixed 'Cannot unset string offsets' if AdminBaseController::getPost($post) is not array
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user