@@ 232-243 (lines=12) @@ | ||
229 | } |
|
230 | } |
|
231 | ||
232 | if (count($errors) > 0) { |
|
233 | foreach ($errors as $error) { |
|
234 | $protocolObj = $helper->getHandler('Protocol')->create(); |
|
235 | $protocolObj->setVar('protocol_letter_id', 0); |
|
236 | $protocolObj->setVar('protocol_subscriber_id', 0); |
|
237 | $protocolObj->setVar('protocol_status', '[' . _MI_XNEWSLETTER_ADMENU11 . ' reguser] ' . $error); |
|
238 | $protocolObj->setVar('protocol_success', false); |
|
239 | $protocolObj->setVar('protocol_submitter', $GLOBALS['xoopsUser']->uid()); |
|
240 | $protocolObj->setVar('protocol_created', time()); |
|
241 | $helper->getHandler('Protocol')->insert($protocolObj); |
|
242 | } |
|
243 | } |
|
244 | ||
245 | if ($deleted > 0) { |
|
246 | $protocolObj = $helper->getHandler('Protocol')->create(); |
|
@@ 245-254 (lines=10) @@ | ||
242 | } |
|
243 | } |
|
244 | ||
245 | if ($deleted > 0) { |
|
246 | $protocolObj = $helper->getHandler('Protocol')->create(); |
|
247 | $protocolObj->setVar('protocol_letter_id', 0); |
|
248 | $protocolObj->setVar('protocol_subscriber_id', 0); |
|
249 | $protocolObj->setVar('protocol_status', '[' . _MI_XNEWSLETTER_ADMENU11 . ' reguser] ' . sprintf(_AM_XNEWSLETTER_MAINTENANCE_DELETEUSEROK, $deleted)); |
|
250 | $protocolObj->setVar('protocol_success', true); |
|
251 | $protocolObj->setVar('protocol_submitter', $GLOBALS['xoopsUser']->uid()); |
|
252 | $protocolObj->setVar('protocol_created', time()); |
|
253 | $helper->getHandler('Protocol')->insert($protocolObj); |
|
254 | } |
|
255 | redirect_header($currentFile, 3, sprintf(_AM_XNEWSLETTER_MAINTENANCE_DELETEUSEROK, $deleted)); |
|
256 | } else { |
|
257 | if ($subscrCount > 0) { |