diff --git a/zmconfgen.pl.in b/zmconfgen.pl.in index 889753c95..4ffc6371e 100644 --- a/zmconfgen.pl.in +++ b/zmconfgen.pl.in @@ -184,6 +184,7 @@ sub generateConfigSQL sub addSlashes { my $string = shift; + return( "" ) unless $string; $string =~ s|(['"])|\\$1|g; return( $string ); }