Browse code

Fix wrong json

Benjamin Roth authored on16/12/2019 11:06:13
Showing1 changed files
... ...
@@ -77,9 +77,9 @@ class TemplateListener
77 77
 
78 78
       if ($strServices != '')
79 79
       {
80
-        $strServices .= ",".trim($rootPage->cookieconsent_services_custom,"\t\n\r\0\x0B ,");
80
+        $strServices = substr($strServices,0,-1).",".trim($rootPage->cookieconsent_services_custom,"\t\n\r\0\x0B ,");
81 81
       } else {
82
-        $strServices = trim($rootPage->cookieconsent_services_custom,"\t\n\r\0\x0B ,");
82
+        $strServices = "{".trim($rootPage->cookieconsent_services_custom,"\t\n\r\0\x0B ,")."}";
83 83
       }
84 84
 
85 85
       if (($strCustomCategories = trim($rootPage->cookieconsent_categories_custom,"\t\n\r\0\x0B ,")) != '')