From 3e3b6cc1e16a797359365cd89d96492393d5ca78 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 2 Jan 2021 21:01:42 +0000 Subject: wrong variable --- include/cdav.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/cdav.php') diff --git a/include/cdav.php b/include/cdav.php index ef248a9fe..fcce0ec4a 100644 --- a/include/cdav.php +++ b/include/cdav.php @@ -111,7 +111,7 @@ function process_cdav_card($f, &$vcard, $edit = false) { function import_cdav_card($id, $ext, $table, $column, $objects, $profile, $backend, &$ids, $notice = false) { $i = 0; - $newid = (count($ids) ? false : true); + $newid = (count($ids) ? false : true); while ($object = $objects->getNext()) { @@ -161,7 +161,7 @@ function import_cdav_card($id, $ext, $table, $column, $objects, $profile, $backe ); } - if($notice && $exp == 'vcf') { + if($notice && $ext == 'vcf') { notice( '' . t('INVALID CARD DISMISSED!') . '' . EOL . '' . t('Name: ') . '' . (($object->FN) ? $object->FN : t('Unknown')) . EOL . -- cgit v1.2.3