@@ 219-225 (lines=7) @@ | ||
216 | header("Location: ".XHELP_ADMIN_URL."/staff.php?op=addRole"); |
|
217 | } |
|
218 | ||
219 | if(isset($_GET['xhelp_role'])){ |
|
220 | $aRoles = explode(",", $_GET['xhelp_role']); |
|
221 | foreach($aRoles as $role){ |
|
222 | $role = intval($role); |
|
223 | } |
|
224 | $_xhelpSession->set("xhelp_mainRoles", $aRoles); // Store roles from the manage staff page |
|
225 | } |
|
226 | ||
227 | if(isset($_GET['xhelp_depts'])){ |
|
228 | $aDepts = explode(",", $_GET['xhelp_depts']); |
|
@@ 227-233 (lines=7) @@ | ||
224 | $_xhelpSession->set("xhelp_mainRoles", $aRoles); // Store roles from the manage staff page |
|
225 | } |
|
226 | ||
227 | if(isset($_GET['xhelp_depts'])){ |
|
228 | $aDepts = explode(",", $_GET['xhelp_depts']); |
|
229 | foreach($aDepts as $dept){ |
|
230 | $dept = intval($dept); |
|
231 | } |
|
232 | $_xhelpSession->set("xhelp_mainDepts", $aDepts); // Store depts from the manage staff page |
|
233 | } |
|
234 | ||
235 | $hDept =& xhelpGetHandler('department'); |
|
236 | $hRole =& xhelpGetHandler('role'); |