Merge branch 'master' into next
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / option / user / group / BBCodeSelectUserGroupOptionType.class.php
index 30f308490541df9d01ac501fa3dc49c8fe675f37..6757ce5a412729a01ea5b75c6f61ea6d48e03a4b 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+declare(strict_types=1);
 namespace wcf\system\option\user\group;
 use wcf\data\bbcode\BBCodeCache;
 use wcf\data\option\Option;
@@ -123,7 +124,7 @@ class BBCodeSelectUserGroupOptionType extends AbstractOptionType implements IUse
                                return 0;
                        }
                        
-                       return -1;
+                       return 1;
                }
                else if (empty($value2)) {
                        return 1;
@@ -135,13 +136,13 @@ class BBCodeSelectUserGroupOptionType extends AbstractOptionType implements IUse
                // check if value1 disallows more BBCodes than value2
                $diff = array_diff($value1, $value2);
                if (!empty($diff)) {
-                       return 1;
+                       return -1;
                }
                
                // check if value1 disallows less BBCodes than value2
                $diff = array_diff($value2, $value1);
                if (!empty($diff)) {
-                       return -1;
+                       return 1;
                }
                
                // both lists of BBCodes are equal