diff --git a/core/trunk/core/manage_bitmask.php b/core/trunk/core/manage_bitmask.php index 50375c62292511a5006982ae431ea8a7bc336080..db99ab7d1cb86aff7dfa002288398baf986446bd 100644 --- a/core/trunk/core/manage_bitmask.php +++ b/core/trunk/core/manage_bitmask.php @@ -2,14 +2,14 @@ function check_right($intToCheck, $right) { - if ($intToCheck & $right) { - return true; - } else { - return false; - } + if ($intToCheck & $right) { + return true; + } else { + return false; + } } function set_right($intToSet = 0, $right) { - return $intToSet | $right; + return $intToSet | (int) $right; }