Skip to content
Permalink
Browse files

Avoid some js errors with empty values

  • Loading branch information...
cdujeu committed Dec 8, 2017
1 parent 3de41e5 commit fda20bb66963ba4bafe2580cfeeabda06d0b663c
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/plugins/access.ajxp_conf/src/RepositoriesManager.php
@@ -1027,7 +1027,7 @@ protected function serializeRepositoryToXML(ContextInterface $ctx, $repository,
$buffer .= ">" ;
foreach ($nested as $option) {
foreach ($option as $key => $optValue) {
if (is_array($optValue) && count($optValue)) {
if (is_array($optValue) /*&& count($optValue)*/) {
$buffer .= "<param name=\"$key\"><![CDATA[".json_encode($optValue)."]]></param>" ;
} else if (is_object($optValue)){
$buffer .= "<param name=\"$key\"><![CDATA[".json_encode($optValue)."]]></param>";

0 comments on commit fda20bb

Please sign in to comment.
You can’t perform that action at this time.