Skip to content

Commit

Permalink
changes as requested
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Taylor authored Nov 6, 2016
1 parent 8c5d65d commit 3a466a2
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,13 @@ public static function getFormValues($object, JTableContenttype $typesTable)
{
$optionFieldArray = $field->xpath('option[@value="' . $expandedObjectArray[$name] . '"]');

$valueText = null;

if (is_array($optionFieldArray) && count($optionFieldArray))
{
{
$valueText = trim((string) $optionFieldArray[0]);
}
else
{
$valueText = null;
}

$values[(string) $field->attributes()->name] = JText::_($valueText);
}
}
Expand Down

0 comments on commit 3a466a2

Please sign in to comment.