mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
fix PHP 8.0 TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given
This commit is contained in:
parent
3dd7af4aa5
commit
b84136cff8
@ -888,9 +888,9 @@ class calendar_merge extends Api\Storage\Merge
|
||||
*/
|
||||
protected function normalize_event_id($id)
|
||||
{
|
||||
if(is_string($id) || is_array($id) && $id['id'] && !$id['start'])
|
||||
if(is_string($id) || is_array($id) && !empty($id['id']) && empty($id['start']))
|
||||
{
|
||||
if(strpos($id, ':'))
|
||||
if (is_string($id) && strpos($id, ':'))
|
||||
{
|
||||
$_id = $id;
|
||||
$id = array();
|
||||
|
Loading…
Reference in New Issue
Block a user