#1515 - Notice: Undefined variable: mappedValue

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@43932 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-10-29 02:01:30 +00:00
parent 20e79f33be
commit a7a31335e2

View File

@ -12,7 +12,7 @@ class LookupField extends DropdownField {
else $mappedValue = $this->source->getItem($this->value);
}
if(!$mappedValue)
if(!isset($mappedValue))
$mappedValue = "<i>(none)</i>";
if($this->value) {