Skip to content
Snippets Groups Projects
Commit 072b641e authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

fix : pb with type of rights var

parent d2ec0c08
No related branches found
No related tags found
No related merge requests found
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
function check_right($intToCheck, $right) function check_right($intToCheck, $right)
{ {
if ($intToCheck & $right) { if ($intToCheck & $right) {
return true; return true;
} else { } else {
return false; return false;
} }
} }
function set_right($intToSet = 0, $right) function set_right($intToSet = 0, $right)
{ {
return $intToSet | $right; return $intToSet | (int) $right;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment