aboutsummaryrefslogtreecommitdiffstats
path: root/includes/installer/PostgresInstaller.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2024-03-23 01:58:33 +0100
committerUmherirrender <umherirrender_de.wp@web.de>2024-03-23 01:58:59 +0100
commit723134eade8d6205445c23f16654a7759e3e7fa5 (patch)
tree995a808ce4b440ad917badd172252f5777a8cfe7 /includes/installer/PostgresInstaller.php
parentb8b791f803ffed8766d72c62ba07089668edfb55 (diff)
downloadmediawikicore-723134eade8d6205445c23f16654a7759e3e7fa5.tar.gz
mediawikicore-723134eade8d6205445c23f16654a7759e3e7fa5.zip
Add explicit parentheses around mixed boolean operator
Mixing different binary boolean operators within an expression without using parentheses to clarify precedence is not allowed (T358966) Change-Id: I24ca752d5dac7c948fdbcabf721f6f0aef8a466f
Diffstat (limited to 'includes/installer/PostgresInstaller.php')
-rw-r--r--includes/installer/PostgresInstaller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/installer/PostgresInstaller.php b/includes/installer/PostgresInstaller.php
index e20a3d555690..7dae5b4c6a5c 100644
--- a/includes/installer/PostgresInstaller.php
+++ b/includes/installer/PostgresInstaller.php
@@ -243,7 +243,7 @@ class PostgresInstaller extends DatabaseInstaller {
public function canCreateAccounts() {
$perms = $this->getInstallUserPermissions();
- return $perms && $perms->rolsuper || $perms->rolcreaterole;
+ return ( $perms && $perms->rolsuper ) || $perms->rolcreaterole;
}
protected function isSuperUser() {