| @@ 139-143 (lines=5) @@ | ||
| 136 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
| 137 | redirect_header($currentFile, 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 138 | } |
|
| 139 | if (Request::hasVar('catsubscr_id', 'REQUEST')) { |
|
| 140 | $catsubscrObj = $helper->getHandler('Catsubscr')->get($_REQUEST['catsubscr_id']); |
|
| 141 | } else { |
|
| 142 | $catsubscrObj = $helper->getHandler('Catsubscr')->create(); |
|
| 143 | } |
|
| 144 | ||
| 145 | $catsubscr_catid = Request::getInt('catsubscr_catid', 0); |
|
| 146 | $catsubscrObj->setVar('catsubscr_catid', $catsubscr_catid); |
|
| @@ 198-202 (lines=5) @@ | ||
| 195 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
| 196 | redirect_header($currentFile, 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 197 | } |
|
| 198 | if (Request::hasVar('protocol_id', 'REQUEST')) { |
|
| 199 | $protocolObj = $helper->getHandler('Protocol')->get(Request::getInt('protocol_id', 0)); |
|
| 200 | } else { |
|
| 201 | $protocolObj = $helper->getHandler('Protocol')->create(); |
|
| 202 | } |
|
| 203 | ||
| 204 | $protocolObj->setVar('protocol_letter_id', Request::getInt('protocol_letter_id', 0)); |
|
| 205 | $protocolObj->setVar('protocol_subscriber_id', Request::getInt('protocol_subscriber_id', 0)); |
|