diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php index 79552eb9..cd1eaffe 100644 --- a/library/Director/Web/Form/DirectorObjectForm.php +++ b/library/Director/Web/Form/DirectorObjectForm.php @@ -183,9 +183,9 @@ abstract class DirectorObjectForm extends QuickForm unset($props['vars']); } - foreach ($props as $k => & $v) { + foreach ($props as $k => $v) { if (is_bool($v)) { - $v = $v ? 'y' : 'n'; + $props[$k] = $v ? 'y' : 'n'; } }