Don't error if a single ID is sent, just cast it

This commit is contained in:
nathangray 2018-02-14 10:16:06 -07:00
parent 9c29079ddf
commit 47f96640c9

View File

@ -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);
}