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