| @@ 634-636 (lines=3) @@ | ||
| 631 | $this->_errors = array(); |
|
| 632 | $autogenerated_handle = false; |
|
| 633 | ||
| 634 | if (!isset($fields['title']) || trim($fields['title']) == '') { |
|
| 635 | $this->_errors['title'] = __('This is a required field'); |
|
| 636 | } |
|
| 637 | ||
| 638 | if (trim($fields['type']) != '' && preg_match('/(index|404|403)/i', $fields['type'])) { |
|
| 639 | $types = preg_split('/\s*,\s*/', strtolower($fields['type']), -1, PREG_SPLIT_NO_EMPTY); |
|
| @@ 645-648 (lines=4) @@ | ||
| 642 | } |
|
| 643 | ||
| 644 | // Check to ensure all the required section fields are filled |
|
| 645 | if (!isset($meta['navigation_group']) || strlen(trim($meta['navigation_group'])) == 0) { |
|
| 646 | $this->_errors['navigation_group'] = __('This is a required field.'); |
|
| 647 | $canProceed = false; |
|
| 648 | } |
|
| 649 | ||
| 650 | // Basic custom field checking |
|
| 651 | if (is_array($fields) && !empty($fields)) { |
|