Issue when saving tab-based plugin configuration (#452)

This commit is contained in:
Matias Griese
2016-03-16 11:09:48 +02:00
parent 066c4bcd37
commit de82a05194
7 changed files with 27 additions and 14 deletions

View File

@@ -261,7 +261,7 @@ class Admin
* @return Data\Data|null
* @throws \RuntimeException
*/
public function data($type, $post = array())
public function data($type, array $post = [])
{
static $data = [];
@@ -270,7 +270,7 @@ class Admin
}
if (!$post) {
$post = isset($_POST) ? $_POST : [];
$post = isset($_POST['data']) ? $_POST['data'] : [];
}
switch ($type) {