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 /server_privileges.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 'server_privileges.php')
-rw-r--r-- | server_privileges.php | 8 |
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 ) ); |