| @@ 11-15 (lines=5) @@ | ||
| 8 | $uid = $xoopsUser->getVar('uid'); |
|
| 9 | ||
| 10 | if(isset($_REQUEST['deleteDept'])){ |
|
| 11 | if (isset( $_REQUEST['deptid'])){ |
|
| 12 | $deptID = $_REQUEST['deptid']; |
|
| 13 | } else { |
|
| 14 | redirect_header(XHELP_ADMIN_URL."/department.php?op=manageDepartments", 3, _AM_XHELP_MESSAGE_NO_DEPT); |
|
| 15 | } |
|
| 16 | ||
| 17 | if (!isset($_POST['ok'])) { |
|
| 18 | xoops_cp_header(); |
|
| @@ 213-217 (lines=5) @@ | ||
| 210 | ||
| 211 | $_xhelpSession->set("xhelp_return_page", substr(strstr($_SERVER['REQUEST_URI'], 'admin/'), 6)); |
|
| 212 | ||
| 213 | if(isset($_REQUEST["deptid"])){ |
|
| 214 | $deptID = $_REQUEST['deptid']; |
|
| 215 | } else { |
|
| 216 | redirect_header(XHELP_ADMIN_URL."/department.php?op=manageDepartments", 3, _AM_XHELP_MSG_NO_DEPTID); |
|
| 217 | } |
|
| 218 | ||
| 219 | $hDepartments =& xhelpGetHandler('department'); |
|
| 220 | $hGroups =& xoops_gethandler('group'); |
|