mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch 'ent-4141-Errores-en-el-Log-del-servidor' into 'develop'
Fixed uninitialized value in pattern match See merge request artica/pandorafms!2542
This commit is contained in:
commit
88ce26dee6
@ -3880,7 +3880,7 @@ sub subst_alert_macros ($$;$$$$) {
|
||||
my $macro_regexp = join('|', keys %{$macros});
|
||||
|
||||
my $subst_func;
|
||||
if ($string =~ m/^(?:(")(?:.*)"|(')(?:.*)')$/) {
|
||||
if (defined($string) && $string =~ m/^(?:(")(?:.*)"|(')(?:.*)')$/) {
|
||||
my $quote = $1 ? $1 : $2;
|
||||
$subst_func = sub {
|
||||
my $macro = on_demand_macro($pa_config, $dbh, shift, $macros, $agent, $module);
|
||||
|
Loading…
x
Reference in New Issue
Block a user