fix PHP Fatal error: Declaration of calendar_owner_etemplate_widget::ajax_search($search_text, $search_options = []) must be compatible with EGroupware\Api\Etemplate\Widget\Taglist::ajax_search($search_text = null, array $search_options = [])

This commit is contained in:
ralf 2022-08-09 15:42:12 +02:00
parent 0e2d1cb15d
commit 90cb916d32

View File

@ -162,7 +162,7 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
}
}
public static function ajax_search($search_text, $search_options = [])
public static function ajax_search($search_text=null, array $search_options = [])
{
$bo = new calendar_bo();
@ -186,7 +186,7 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
$mapped = array();
$_results = array();
// Handle Api\Accounts seperately
// Handle Api\Accounts separately
if($type == '')
{
$owngroup_options = $options+array('account_type'=>'owngroups');