mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +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
e0feb09df2
commit
e1f13eade1
@ -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