mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Fixed hodor
This commit is contained in:
parent
d40289fbc9
commit
a144fb77cd
|
@ -310,12 +310,12 @@ class Helper
|
||||||
|
|
||||||
if ($selected_arr) {
|
if ($selected_arr) {
|
||||||
if (array_key_exists($permission_name,$selected_arr)) {
|
if (array_key_exists($permission_name,$selected_arr)) {
|
||||||
$permissions_arr[$permission_name] = ($selected_arr[$permission_name] === 1) ? '1': '0';
|
$permissions_arr[$permission_name] = ($selected_arr[$permission_name] == 1) ? '1': '0';
|
||||||
} else {
|
} else {
|
||||||
$permissions_arr[$permission_name] = 'bum';
|
$permissions_arr[$permission_name] = '0';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$permissions_arr[$permission_name] = 'hodor';
|
$permissions_arr[$permission_name] = '0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue