Skip to content

Commit

Permalink
Fixed problem with blank boolean values
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3347 e3e1d417-86f3-4887-817a-d78f3d33393f
  • Loading branch information
stan committed May 20, 2011
1 parent ee5d8db commit d26f3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zmconfgen.pl.in
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ sub generateConfigSQL
sub addSlashes
{
my $string = shift;
return( "" ) unless $string;
return( "" ) if ( !defined($string) );
$string =~ s|(['"])|\\$1|g;
return( $string );
}

0 comments on commit d26f3a7

Please sign in to comment.