WIP Timesheet REST API: fix PHP Fatal error in Addressbook&Calendar REST API

Declaration of parseCategories must be compatible
This commit is contained in:
ralf 2023-12-01 14:20:25 +02:00
parent e3dde92be8
commit 601cd428e5
3 changed files with 5 additions and 2 deletions

View File

@ -265,6 +265,7 @@ class JsBase
* Parse categories object
*
* @param array $categories category-name => true pairs
* @param bool $multiple
* @return ?string comma-separated cat_id's
* @todo make that generic, so JsContact & JSCalendar have not to overwrite it
*/

View File

@ -205,9 +205,10 @@ class JsCalendar extends JsBase
* Parse categories object
*
* @param array $categories category-name => true pairs
* @param bool $multiple
* @return ?string comma-separated cat_id's
*/
protected static function parseCategories(array $categories)
protected static function parseCategories(array $categories, bool $multiple=true)
{
static $bo=null;
$cat_ids = [];

View File

@ -351,9 +351,10 @@ class JsContact extends Api\CalDAV\JsBase
* Parse categories object
*
* @param array $categories category-name => true pairs
* @param bool $multiple
* @return ?string comma-separated cat_id's
*/
protected static function parseCategories(array $categories)
protected static function parseCategories(array $categories, bool $multiple=true)
{
static $bo=null;
$cat_ids = [];