mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 03:16:11 +01:00
Merge branch 'develop' into feature/admin-gpm-dependencies
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user