Fix EMSI session undefined, other minor cosmetic code changes

This commit is contained in:
Deon George 2022-12-04 20:45:33 +11:00
parent 369f8e48fe
commit 4d3d57fdcd
2 changed files with 4 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -8,8 +8,7 @@ use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Notification;
use Illuminate\Support\Facades\Log;
use App\Classes\{ANSI,Fonts\Thin,Page};
use App\Classes\Fonts\Thick;
use App\Classes\{ANSI,Fonts\Thin,Fonts\Thick,Page};
use App\Classes\FTN\Message;
use App\Models\{Address,Netmail,Setup,User};