We're updating the issue view to help you get more done. 

Configuration Exporter throws errors with empty settings and typeRestrictions

Description

Configuration Exporter fails with errors related to empty setting and empty typeRestrictions. I have made some corrections, but I do not know if they are valid or just masking another issue:

(/app/lib/ca/ConfigurationExporter.php)

~line 350: foreach($va_settings as $vs_name => $va_setting){...

to foreach((array)$va_settings as $vs_name => $va_setting){...
to prevent an error when $va_settings is null, and

~line 943: $vo_placement->setAttribute("typeRestrictions", join(",", caMakeTypeList($vs_type, $va_type_restrictions)));

to $vo_placement->setAttribute("typeRestrictions", @join(",", caMakeTypeList($vs_type, $va_type_restrictions)));'
to prevent an error when caMakeTypeList($vs_type, $va_type_restrictions) returns null.

Environment

Shared Apache Server

Assignee

User known

Reporter

bruce klotz

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure