Browse code

Fix custom services not implemented if none of the presets is chosen

Benjamin Roth authored on16/12/2019 10:56:54
Showing1 changed files
... ...
@@ -77,7 +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 .= ",".trim($rootPage->cookieconsent_services_custom,"\t\n\r\0\x0B ,");
81
+      } else {
82
+        $strServices = trim($rootPage->cookieconsent_services_custom,"\t\n\r\0\x0B ,");
81 83
       }
82 84
 
83 85
       if (($strCustomCategories = trim($rootPage->cookieconsent_categories_custom,"\t\n\r\0\x0B ,")) != '')