fix ics import

This commit is contained in:
Mario
2023-01-28 16:57:32 +00:00
parent ae1cc65b23
commit a3913c5ca4

View File

@@ -132,7 +132,7 @@ function import_cdav_card($id, $ext, $table, $column, $objects, $profile, $backe
$objectUri = random_string(40) . '.' . $ext; $objectUri = random_string(40) . '.' . $ext;
$r = q("SELECT uri FROM $table WHERE $column = %d AND uri = '%s' LIMIT 1", $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) dbesc($objectUri)
); );
if (count($r)) if (count($r))