"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core-bundle/src/Resources/contao/widgets/KeyValueWizard.php" between
contao-4.11.3.tar.gz and contao-4.11.4.tar.gz

About: Contao (fka TYPOlight) is a content management system (CMS). Latest release.

KeyValueWizard.php  (contao-4.11.3):KeyValueWizard.php  (contao-4.11.4)
skipping to change at line 69 skipping to change at line 69
{ {
$mandatory = $this->mandatory; $mandatory = $this->mandatory;
$options = $this->getPost($this->strName); $options = $this->getPost($this->strName);
// Check keys only (values can be empty) // Check keys only (values can be empty)
if (\is_array($options)) if (\is_array($options))
{ {
foreach ($options as $key=>$option) foreach ($options as $key=>$option)
{ {
// Unset empty rows // Unset empty rows
if (!$option['key']) if (trim($option['key']) === '')
{ {
unset($options[$key]); unset($options[$key]);
continue; continue;
} }
$options[$key]['key'] = trim($option['key']); $options[$key]['key'] = trim($option['key']);
$options[$key]['value'] = trim($option['value']); $options[$key]['value'] = trim($option['value']);
if ($options[$key]['key']) if ($options[$key]['key'])
{ {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)