From 1769731045e4e0053e5c4c91e7bdd26d565fa46a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 3 Feb 2021 11:02:25 +0100 Subject: [PATCH] Add explicit parentheses around mixed boolean operators in I18nPlural see #3926 --- wcfsetup/install/files/lib/system/language/I18nPlural.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/language/I18nPlural.class.php b/wcfsetup/install/files/lib/system/language/I18nPlural.class.php index 485114a184..3211944631 100644 --- a/wcfsetup/install/files/lib/system/language/I18nPlural.class.php +++ b/wcfsetup/install/files/lib/system/language/I18nPlural.class.php @@ -382,7 +382,7 @@ class I18nPlural { $f = self::getF($n); - if ($f === 0 && $n % 10 === 1 && !($n % 100 === 11) || !($f === 0)) { + if (($f === 0 && $n % 10 === 1 && !($n % 100 === 11)) || !($f === 0)) { return self::PLURAL_ONE; } } -- 2.20.1