From d09d59f994e07bad2bfb59000706f5787833f7e7 Mon Sep 17 00:00:00 2001 From: Graham Watson Date: Fri, 25 Nov 2022 00:14:37 -0500 Subject: [PATCH] Fixes incorrect array access Fixes this error: Trying to access array offset on value of type null on line 43 of /srv/app/vendor/lorenzo/cakephp-email-queue/src/Shell/PreviewShell.php --- src/Shell/PreviewShell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shell/PreviewShell.php b/src/Shell/PreviewShell.php index dc57958..bb3b5c4 100755 --- a/src/Shell/PreviewShell.php +++ b/src/Shell/PreviewShell.php @@ -40,7 +40,7 @@ public function main() $this->in('Hit a key to continue'); $this->clear(); } - $this->out('Email :' . $email['EmailQueue']['id']); + $this->out('Email :' . $email['id']); $this->preview($email); } }