| @@ 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 | ||
| @@ 705-707 (lines=3) @@ | ||
| 702 | } |
|
| 703 | ||
| 704 | // Author doesn't have valid data, throw back. |
|
| 705 | if (is_array($this->_errors) && !empty($this->_errors)) { |
|
| 706 | $this->pageAlert(__('There were some problems while attempting to save. Please check below for problem fields.'), Alert::ERROR); |
|
| 707 | } |
|
| 708 | } elseif (@array_key_exists('delete', $_POST['action'])) { |
|
| 709 | // Validate rights |
|
| 710 | if (!$canEdit) { |
|
| @@ 724-727 (lines=4) @@ | ||
| 721 | $this->_errors['confirm-change-password'] = __('Wrong password, please enter your own password to make changes to this author.'); |
|
| 722 | } |
|
| 723 | } |
|
| 724 | if (is_array($this->_errors) && !empty($this->_errors)) { |
|
| 725 | $this->pageAlert(__('There were some problems while attempting to save. Please check below for problem fields.'), Alert::ERROR); |
|
| 726 | return; |
|
| 727 | } |
|
| 728 | ||
| 729 | /** |
|
| 730 | * Prior to deleting an author, provided with the Author ID. |
|