From 90cb916d3278fcf26cd99395fb6c58b52c6bed2c Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 9 Aug 2022 15:42:12 +0200 Subject: [PATCH] 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 = []) --- calendar/inc/class.calendar_owner_etemplate_widget.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_owner_etemplate_widget.inc.php b/calendar/inc/class.calendar_owner_etemplate_widget.inc.php index 0fb2df8c7f..1833b1c5b2 100644 --- a/calendar/inc/class.calendar_owner_etemplate_widget.inc.php +++ b/calendar/inc/class.calendar_owner_etemplate_widget.inc.php @@ -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');