Add explicit parentheses around mixed boolean operators in I18nPlural
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 3 Feb 2021 10:02:25 +0000 (11:02 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 3 Feb 2021 10:02:25 +0000 (11:02 +0100)
see #3926

wcfsetup/install/files/lib/system/language/I18nPlural.class.php

index 485114a184b837bf44efef81d58518598b768470..321194463121582ca2719adfcf428217e4f972c9 100644 (file)
@@ -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;
         }
     }