When server is NULL, don't escape the NULL
This commit is contained in:
parent
8cddf9b7a6
commit
d8323a4dac
|
@ -213,6 +213,8 @@ sub Sql {
|
||||||
$value = "'$ZoneMinder::Config::Config{ZM_SERVER_ID}'";
|
$value = "'$ZoneMinder::Config::Config{ZM_SERVER_ID}'";
|
||||||
# This gets used later, I forget for what
|
# This gets used later, I forget for what
|
||||||
$$self{Server} = new ZoneMinder::Server( $ZoneMinder::Config::Config{ZM_SERVER_ID} );
|
$$self{Server} = new ZoneMinder::Server( $ZoneMinder::Config::Config{ZM_SERVER_ID} );
|
||||||
|
} elsif ( $temp_value eq 'NULL' ) {
|
||||||
|
$value = $temp_value;
|
||||||
} else {
|
} else {
|
||||||
$value = "'$temp_value'";
|
$value = "'$temp_value'";
|
||||||
# This gets used later, I forget for what
|
# This gets used later, I forget for what
|
||||||
|
|
Loading…
Reference in New Issue