| @@ 979-984 (lines=6) @@ | ||
| 976 | ||
| 977 | // If there was any errors, either with pre processing or because of a |
|
| 978 | // duplicate page, return. |
|
| 979 | if (is_array($this->_errors) && !empty($this->_errors)) { |
|
| 980 | return $this->pageAlert( |
|
| 981 | __('An error occurred while processing this form. See below for details.'), |
|
| 982 | Alert::ERROR |
|
| 983 | ); |
|
| 984 | } |
|
| 985 | } |
|
| 986 | } |
|
| 987 | } |
|
| @@ 801-803 (lines=3) @@ | ||
| 798 | } |
|
| 799 | ||
| 800 | // Author doesn't have valid data, throw back. |
|
| 801 | if (is_array($this->_errors) && !empty($this->_errors)) { |
|
| 802 | $this->pageAlert(__('There were some problems while attempting to save. Please check below for problem fields.'), |
|
| 803 | Alert::ERROR); |
|
| 804 | } |
|
| 805 | } elseif (@array_key_exists('delete', $_POST['action'])) { |
|
| 806 | /** |
|