Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-05-30 07:42:21 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-05-30 07:42:21 +0300
commitb9c0463d960494cbfe0f04b3159c5ff4a467c446 (patch)
tree9fe17f2cc230558fbff7a76b9386600ac37d0e8e /server_privileges.php
parent93bf3d0d1739ec3b15d0e0317ee18b222c58c462 (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 'server_privileges.php')
-rw-r--r--server_privileges.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/server_privileges.php b/server_privileges.php
index 21a7856ae2..4eb9eee133 100644
--- a/server_privileges.php
+++ b/server_privileges.php
@@ -52,10 +52,10 @@ if ((isset($_REQUEST['viewing_mode'])
* Sets globals from $_POST patterns, for privileges and max_* vars
*/
-$post_patterns = array(
+$post_patterns = [
'/_priv$/i',
'/^max_/i'
-);
+];
Core::setPostAsGlobal($post_patterns);
@@ -429,8 +429,8 @@ if (isset($_REQUEST['adduser'])) {
if (isset($dbname) && ! is_array($dbname)) {
$url_dbname = urlencode(
str_replace(
- array('\_', '\%'),
- array('_', '%'),
+ ['\_', '\%'],
+ ['_', '%'],
$dbname
)
);