diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-05-30 07:42:21 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-05-30 07:42:21 +0300 |
commit | b9c0463d960494cbfe0f04b3159c5ff4a467c446 (patch) | |
tree | 9fe17f2cc230558fbff7a76b9386600ac37d0e8e /prefs_manage.php | |
parent | 93bf3d0d1739ec3b15d0e0317ee18b222c58c462 (diff) |
Use short array syntax instead of long array syntax
Replaces array() with [].
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'prefs_manage.php')
-rw-r--r-- | prefs_manage.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/prefs_manage.php b/prefs_manage.php index 05dcd0c7e2..71552fb929 100644 --- a/prefs_manage.php +++ b/prefs_manage.php @@ -150,7 +150,7 @@ if (isset($_POST['submit_export']) } // check for ThemeDefault - $params = array(); + $params = []; $tmanager = ThemeManager::getInstance(); if (isset($config['ThemeDefault']) && $tmanager->theme->getId() != $config['ThemeDefault'] @@ -192,9 +192,9 @@ if (isset($_POST['submit_export']) } } } elseif (isset($_POST['submit_clear'])) { - $result = $userPreferences->save(array()); + $result = $userPreferences->save([]); if ($result === true) { - $params = array(); + $params = []; $GLOBALS['PMA_Config']->removeCookie('pma_collaction_connection'); $GLOBALS['PMA_Config']->removeCookie('pma_lang'); $userPreferences->redirect('prefs_manage.php', $params); |