From: Thomas Berezansky Date: Tue, 9 Jun 2015 14:39:21 +0000 (-0400) Subject: Defined, not Exists X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0db2021b539c24ef39ab47fba673b9dcd9fd8259;p=working%2FSIPServer.git Defined, not Exists Exists returns true even if set to undef, which we do to "reset". Signed-off-by: Thomas Berezansky --- diff --git a/Sip/MsgType.pm b/Sip/MsgType.pm index ab6a86e..91bbbd6 100644 --- a/Sip/MsgType.pm +++ b/Sip/MsgType.pm @@ -780,7 +780,7 @@ sub handle_sc_status { $protocol_version = $new_proto; } - unless (exists $server->{account}) { + unless (defined $server->{account}) { # If we haven't logged in yet, go ahead and # return the SC status anyway, arbitrarily using the # first account in Perl string sort order to specify