| @@ 750-752 (lines=3) @@ | ||
| 747 | } |
|
| 748 | ||
| 749 | // Author doesn't have valid data, throw back. |
|
| 750 | if (is_array($this->_errors) && !empty($this->_errors)) { |
|
| 751 | $this->pageAlert(__('There were some problems while attempting to save. Please check below for problem fields.'), Alert::ERROR); |
|
| 752 | } |
|
| 753 | } elseif (@array_key_exists('delete', $_POST['action'])) { |
|
| 754 | /** |
|
| 755 | * Prior to deleting an author, provided with the Author ID. |
|
| @@ 853-858 (lines=6) @@ | ||
| 850 | ||
| 851 | // If there was any errors, either with pre processing or because of a |
|
| 852 | // duplicate page, return. |
|
| 853 | if (is_array($this->_errors) && !empty($this->_errors)) { |
|
| 854 | return $this->pageAlert( |
|
| 855 | __('An error occurred while processing this form. See below for details.'), |
|
| 856 | Alert::ERROR |
|
| 857 | ); |
|
| 858 | } |
|
| 859 | } |
|
| 860 | } |
|
| 861 | ||