From ae417fbefa06bb5566f1d737274e42216c684885 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 14 Feb 2018 10:16:06 -0700 Subject: [PATCH] Don't error if a single ID is sent, just cast it --- calendar/inc/class.calendar_merge.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_merge.inc.php b/calendar/inc/class.calendar_merge.inc.php index 69f8031ee7..d098675908 100644 --- a/calendar/inc/class.calendar_merge.inc.php +++ b/calendar/inc/class.calendar_merge.inc.php @@ -121,7 +121,7 @@ class calendar_merge extends Api\Storage\Merge */ function merge_string($content,$ids,$err,$mimetype,$fix) { - $ids = $this->validate_ids($ids, $content); + $ids = $this->validate_ids((array)$ids, $content); return parent::merge_string($content, $ids, $err, $mimetype,$fix); }