fix dumb mistake, undefing ZM_SERVBER_ID after setting it.

pull/1223/head
Isaac Connor 2016-01-04 22:07:07 -05:00
parent 44f3b99d24
commit f0486e5b5e
1 changed files with 1 additions and 1 deletions

View File

@ -104,6 +104,7 @@ BEGIN
#$dbh->disconnect();
if ( ! exists $Config{ZM_SERVER_ID} ) {
$Config{ZM_SERVER_ID} = undef;
$sth = $dbh->prepare_cached( 'SELECT * FROM Servers WHERE Name=?' );
if ( $Config{ZM_SERVER_NAME} ) {
$res = $sth->execute( $Config{ZM_SERVER_NAME} );
@ -114,7 +115,6 @@ BEGIN
my $result = $sth->fetchrow_hashref();
$Config{ZM_SERVER_ID} = $$result{Id};
}
$Config{ZM_SERVER_ID} = undef;
}
}