aboutsummaryrefslogtreecommitdiffstats
path: root/include/cdav.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/cdav.php')
-rw-r--r--include/cdav.php2
1 files changed, 1 insertions, 1 deletions
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))