Announcement

Symphony's issue tracker has been moved to Github.

Issues are displayed here for reference only and cannot be created or edited.

Browse

Closed#462: Empty DS output params show empty `<item>` element in XML

Output params are now visible in the param pool. When a DS output param is empty its value is actually an array with one item: an empty string:

array(1) {
  [0]=>
  string(0) ""
}

This results in XML like:

<ds-test>
    <item handle="" />
</ds-test>

This is remedies by checking array length and its first value:

class.frontendpage.php line 452

if (is_array($value) && !(count($value) == 1 && empty($value[0]))) {

There might be a more elegant way but I’m too tired to recall.

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details