Fix EMSI session undefined, other minor cosmetic code changes
This commit is contained in:
@@ -1173,6 +1173,8 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
|
||||
{
|
||||
Log::debug(sprintf('%s:+ wazoosend [%d]',self::LOGKEY,$zap));
|
||||
|
||||
$z = NULL;
|
||||
|
||||
// See if there is anything to add to the outbound
|
||||
// Add our mail to the queue if we have authenticated
|
||||
if ($this->node->aka_authed)
|
||||
@@ -1186,6 +1188,6 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
|
||||
}
|
||||
|
||||
Log::debug(sprintf('%s:- Finished sending',self::LOGKEY));
|
||||
return ($z->zmodem_senddone()<0);
|
||||
return (($z && $z->zmodem_senddone())<0);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user