From a3913c5ca47479e0ae616d7720b75e6415fd072f Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 28 Jan 2023 16:57:32 +0000 Subject: fix ics import --- include/cdav.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/cdav.php') diff --git a/include/cdav.php b/include/cdav.php index fcce0ec4a..73977e624 100644 --- a/include/cdav.php +++ b/include/cdav.php @@ -132,7 +132,7 @@ function import_cdav_card($id, $ext, $table, $column, $objects, $profile, $backe $objectUri = random_string(40) . '.' . $ext; $r = q("SELECT uri FROM $table WHERE $column = %d AND uri = '%s' LIMIT 1", - dbesc($id), + dbesc(is_array($id) ? $id[0] : $id), dbesc($objectUri) ); if (count($r)) -- cgit v1.2.3