mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:51 +01:00
fix PHP 8.0 TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given
This commit is contained in:
parent
eca5200268
commit
f7247a6ea9
@ -888,9 +888,9 @@ class calendar_merge extends Api\Storage\Merge
|
|||||||
*/
|
*/
|
||||||
protected function normalize_event_id($id)
|
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 = $id;
|
||||||
$id = array();
|
$id = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user