When server is NULL, don't escape the NULL

This commit is contained in:
Isaac Connor 2018-01-09 07:28:57 -08:00
parent 8cddf9b7a6
commit d8323a4dac
1 changed files with 2 additions and 0 deletions

View File

@ -213,6 +213,8 @@ sub Sql {
$value = "'$ZoneMinder::Config::Config{ZM_SERVER_ID}'";
# This gets used later, I forget for what
$$self{Server} = new ZoneMinder::Server( $ZoneMinder::Config::Config{ZM_SERVER_ID} );
} elsif ( $temp_value eq 'NULL' ) {
$value = $temp_value;
} else {
$value = "'$temp_value'";
# This gets used later, I forget for what