Both searches usable

This commit is contained in:
cgfhtw
2025-06-17 10:50:29 +02:00
parent e8d6d751e6
commit 2b3d772a90
3 changed files with 72 additions and 18 deletions
@@ -62,7 +62,7 @@ class Searchbar extends FHCAPI_Controller
$result = $this->searchbarlib->search($this->input->post(self::SEARCHSTR_PARAM), $this->input->post(self::TYPES_PARAM));
if (property_exists($result, 'error'))
$this->terminateWithError(getError($result), self::ERROR_TYPE_GENERAL);
$this->terminateWithSuccess($result);
$this->terminateWithSuccess($result->data);
}
/**