Ensure that the string form value of 'access' is known and not a guess of a boolean

This commit is contained in:
Miles Lott 2004-02-15 18:14:44 +00:00
parent 4aae93b598
commit 7c71fb9a08

View File

@ -1443,7 +1443,6 @@
$fields['adr_two_type'] = substr($typeb,0,-1); $fields['adr_two_type'] = substr($typeb,0,-1);
$custom = $this->fields->read_custom_fields(); $custom = $this->fields->read_custom_fields();
// while(list($name,$val) = @each($custom))
foreach($custom as $name => $val) foreach($custom as $name => $val)
{ {
$fields[$val['name']] = $entry[$val['name']]; $fields[$val['name']] = $entry[$val['name']];
@ -1455,7 +1454,7 @@
$fields['note'] = $entry['notes']; $fields['note'] = $entry['notes'];
$fields['label'] = $entry['label']; $fields['label'] = $entry['label'];
if($entry['access'] == True) if($entry['access'] == 'True')
{ {
$fields['access'] = 'private'; $fields['access'] = 'private';
} }