$this->ctrlObj['letters'] = $this->getAlphaList();
$this->ctrlObj['searchMapIconActive'] = $searchMapIconActive;
- if (isset($_GET['search']) && $this->showSearchBox) {
+ if ($this->showSearchBox) {
$action = MEDIA_BASE_URL . "index.php?{$_SERVER['QUERY_STRING']}";
$form = new Toolkit_Members_UserSearchForm(
'SearchForm',
50,
null,
null,
- true
+ (bool)$page['search_form']
);
$searchList->setConfig($this->_configContainer);
if (filter_input(INPUT_GET, 'member_id', FILTER_VALIDATE_INT)) {
$tPage->profile = $this->_getMemberProfilePage($this->id);
- } elseif (!$page['search_form']) {
+ } elseif ($page['search_form']) {
+// $tPage->searchForm = $this->_getMemberSearchForm($this->id);
$tPage->searchResults = $this->_getMemberSearchResults($this->id);
} elseif (isset($_GET['search'])) {
$tPage->searchResults = $this->_getMemberSearchResults($this->id);
} else {
- $tPage->searchForm = $this->_getMemberSearchForm($this->id);
+// $tPage->searchForm = $this->_getMemberSearchForm($this->id);
+ $tPage->searchResults = $this->_getMemberSearchResults($this->id);
}
return $tPage;
// $tpl->compile('toolbox.html');