[Notice] Undefined index: Search

GET /about/ashburton-trust-management-team/SearchForm

Line 109 in /var/www/vhosts/ashburtontrust.co.nz/httpdocs/cms/code/search/SearchForm.php

Source

100 	 	// legacy usage: $data was defaulting to $_REQUEST, parameter not passed in doc.silverstripe.org tutorials
101 		if(!isset($data) || !is_array($data)) $data = $_REQUEST;
102 		
103 		// set language (if present)
104 		if(class_exists('Translatable') && singleton('SiteTree')->hasExtension('Translatable') && isset($data['locale'])) {
105 			$origLocale = Translatable::get_current_locale();
106 			Translatable::set_current_locale($data['locale']);
107 		}
108 	
109 		$keywords = $data['Search'];
110 
111 	 	$andProcessor = create_function('$matches','
112 	 		return " +" . $matches[2] . " +" . $matches[4] . " ";
113 	 	');
114 	 	$notProcessor = create_function('$matches', '
115 	 		return " -" . $matches[3];

Trace

Search Results » The Trust Ashburton

Search Results

Page 1 of 28