|
@@ 308-311 (lines=4) @@
|
| 305 |
|
|
| 306 |
|
$confirm = isset($_POST['confirm']) ? $_POST['confirm'] : 0; |
| 307 |
|
if ($confirm) { |
| 308 |
|
if (!$this->handler->delete($smartObj)) { |
| 309 |
|
redirect_header($_POST['redirect_page'], 3, _CO_SOBJECT_DELETE_ERROR . $smartObj->getHtmlErrors()); |
| 310 |
|
exit; |
| 311 |
|
} |
| 312 |
|
|
| 313 |
|
redirect_header($_POST['redirect_page'], 3, _CO_SOBJECT_DELETE_SUCCESS); |
| 314 |
|
} else { |
|
@@ 348-351 (lines=4) @@
|
| 345 |
|
|
| 346 |
|
$confirm = isset($_POST['confirm']) ? $_POST['confirm'] : 0; |
| 347 |
|
if ($confirm) { |
| 348 |
|
if (!$this->handler->delete($smartObj)) { |
| 349 |
|
redirect_header($_POST['redirect_page'], 3, _CO_SOBJECT_DELETE_ERROR . $smartObj->getHtmlErrors()); |
| 350 |
|
exit; |
| 351 |
|
} |
| 352 |
|
|
| 353 |
|
redirect_header($_POST['redirect_page'], 3, _CO_SOBJECT_DELETE_SUCCESS); |
| 354 |
|
} else { |