mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:49:10 +01:00
WIP Timesheet REST API: fix PHP Fatal error in Addressbook&Calendar REST API
Declaration of parseCategories must be compatible
This commit is contained in:
parent
e3dde92be8
commit
601cd428e5
@ -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
|
||||
*/
|
||||
|
@ -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 = [];
|
||||
|
@ -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 = [];
|
||||
|
Loading…
Reference in New Issue
Block a user