From cd9c926435d16be62546e3ed452ce97cf1032fe3 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Wed, 8 Jun 2011 15:08:52 +0000 Subject: [PATCH] 2011-06-08 Ramon Novoa * lib/PandoraFMS/Core.pm: Use commas to separate tags. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4421 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 4 ++++ pandora_server/lib/PandoraFMS/Core.pm | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 6b91bf9b85..fb5007b24d 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,7 @@ +2011-06-08 Ramon Novoa + + * lib/PandoraFMS/Core.pm: Use commas to separate tags. + 2011-06-08 Ramon Novoa * lib/PandoraFMS/DB.pm: Added a function to get the name of an alert diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index c4a9ff3ba8..af51e89b19 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -2435,12 +2435,15 @@ sub pandora_get_module_tags ($$$) { # No tags found return '' if ($#tags < 0); - - my $tag_string = '|'; + + my $tag_string = ''; foreach my $tag (@tags) { - $tag_string .= $tag->{'name'} . '|'; + $tag_string .= $tag->{'name'} . ','; } + # Remove the trailing ',' + chop ($tag_string); + return $tag_string; }