@@ 722-724 (lines=3) @@ | ||
719 | $this->_errors = array(); |
|
720 | $autogenerated_handle = false; |
|
721 | ||
722 | if (!isset($fields['title']) || trim($fields['title']) === '') { |
|
723 | $this->_errors['title'] = __('This is a required field'); |
|
724 | } |
|
725 | ||
726 | if (trim($fields['type']) !== '' && preg_match('/(index|404|403)/i', $fields['type'])) { |
|
727 | $types = preg_split('/\s*,\s*/', strtolower($fields['type']), -1, PREG_SPLIT_NO_EMPTY); |
@@ 778-781 (lines=4) @@ | ||
775 | } |
|
776 | ||
777 | // Check to ensure all the required section fields are filled |
|
778 | if (!isset($meta['navigation_group']) || strlen(trim($meta['navigation_group'])) === 0) { |
|
779 | $this->_errors['navigation_group'] = __('This is a required field.'); |
|
780 | $canProceed = false; |
|
781 | } |
|
782 | ||
783 | // Basic custom field checking |
|
784 | if (is_array($fields) && !empty($fields)) { |