From 68ba92e1b9ac1b2b03e98db29d13e7fa981905cd Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 4 Aug 2008 08:24:34 +0000 Subject: [PATCH] Some clients do not use uppercase charaters to name PRIVATE/PUBLIC class. To be more fault tolerant change line 687 of trunk/addressbook/inc/class.addressbook_vcal.inc.php this was pointed out by Philip Herbert. Carl Knauber Holding GmbH & Co KG --- addressbook/inc/class.addressbook_vcal.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_vcal.inc.php b/addressbook/inc/class.addressbook_vcal.inc.php index 4910455550..02da408c5b 100644 --- a/addressbook/inc/class.addressbook_vcal.inc.php +++ b/addressbook/inc/class.addressbook_vcal.inc.php @@ -684,7 +684,7 @@ class addressbook_vcal extends addressbook_bo break; case 'private': - $contact[$fieldName] = (int) ($value == 'PRIVATE'); + $contact[$fieldName] = (int) ( strtoupper($value) == 'PRIVATE'); break; case 'cat_id':