diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/cdav.php | 2 |
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)) |