| @@ 881-886 (lines=6) @@ | ||
| 878 | ||
| 879 | // If there was any errors, either with pre processing or because of a |
|
| 880 | // duplicate page, return. |
|
| 881 | if (is_array($this->_errors) && !empty($this->_errors)) { |
|
| 882 | return $this->pageAlert( |
|
| 883 | __('An error occurred while processing this form. See below for details.'), |
|
| 884 | Alert::ERROR |
|
| 885 | ); |
|
| 886 | } |
|
| 887 | } |
|
| 888 | } |
|
| 889 | ||
| @@ 822-824 (lines=3) @@ | ||
| 819 | } |
|
| 820 | ||
| 821 | // Author doesn't have valid data, throw back. |
|
| 822 | if (is_array($this->_errors) && !empty($this->_errors)) { |
|
| 823 | $this->pageAlert(__('There were some problems while attempting to save. Please check below for problem fields.'), Alert::ERROR); |
|
| 824 | } |
|
| 825 | } elseif (@array_key_exists('delete', $_POST['action'])) { |
|
| 826 | // Validate rights |
|
| 827 | if (!$canEdit) { |
|
| @@ 841-844 (lines=4) @@ | ||
| 838 | $this->_errors['confirm-change-password'] = __('Wrong password, please enter your own password to make changes to this author.'); |
|
| 839 | } |
|
| 840 | } |
|
| 841 | if (is_array($this->_errors) && !empty($this->_errors)) { |
|
| 842 | $this->pageAlert(__('There were some problems while attempting to save. Please check below for problem fields.'), Alert::ERROR); |
|
| 843 | return; |
|
| 844 | } |
|
| 845 | ||
| 846 | $this->_Author = AuthorManager::fetchByID($author_id); |
|
| 847 | ||