From 7c71fb9a080a8fbb4a7ab2d91a531ef226655ec8 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 15 Feb 2004 18:14:44 +0000 Subject: [PATCH] Ensure that the string form value of 'access' is known and not a guess of a boolean --- addressbook/inc/class.uiaddressbook.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addressbook/inc/class.uiaddressbook.inc.php b/addressbook/inc/class.uiaddressbook.inc.php index fd7a75a4ed..b9e475aba2 100644 --- a/addressbook/inc/class.uiaddressbook.inc.php +++ b/addressbook/inc/class.uiaddressbook.inc.php @@ -1443,7 +1443,6 @@ $fields['adr_two_type'] = substr($typeb,0,-1); $custom = $this->fields->read_custom_fields(); -// while(list($name,$val) = @each($custom)) foreach($custom as $name => $val) { $fields[$val['name']] = $entry[$val['name']]; @@ -1455,7 +1454,7 @@ $fields['note'] = $entry['notes']; $fields['label'] = $entry['label']; - if($entry['access'] == True) + if($entry['access'] == 'True') { $fields['access'] = 'private'; }