diff --git a/forms/LookupField.php b/forms/LookupField.php
index 9aefddf39..233d7eb61 100755
--- a/forms/LookupField.php
+++ b/forms/LookupField.php
@@ -1,6 +1,7 @@
source->getItem($this->value);
}
- if(!isset($mappedValue)) $mappedValue = "(none)";
-
- if($this->value) $val = $this->dontEscape ? ($this->reserveNL?Convert::raw2xml($this->value):$this->value) : Convert::raw2xml($this->value);
- else $val = '(none)';
- $valforInput = $this->value ? Convert::raw2att($val) : "";
-
- return "id() . "\">$mappedValuename."\" value=\"".$valforInput."\" />";
+ if(!$mappedValue)
+ $mappedValue = "(none)";
+
+ if($this->value) {
+ $val = $this->dontEscape
+ ? ($this->reserveNL?Convert::raw2xml($this->value):$this->value)
+ : Convert::raw2xml($this->value);
+ } else {
+ $val = '(none)';
+ }
+
+ $valforInput = $this->value
+ ? Convert::raw2att($val)
+ : "";
+
+ return "id() .
+ "\">$mappedValuename .
+ "\" value=\"" . $valforInput . "\" />";
}
function performReadonlyTransformation() {
return $this;