From 8eeb846943970372b10d7721dd234fb31e29a93c Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sun, 1 Apr 2012 21:27:53 +0000 Subject: [PATCH] Fix E_STRICT notice git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14309 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/deliver/Deliver_IMAP.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/class/deliver/Deliver_IMAP.class.php b/class/deliver/Deliver_IMAP.class.php index 16c327da..f437b4b7 100644 --- a/class/deliver/Deliver_IMAP.class.php +++ b/class/deliver/Deliver_IMAP.class.php @@ -52,7 +52,10 @@ class Deliver_IMAP extends Deliver { * */ function send_mail($message, $header, $boundary, $stream=false, - &$raw_length, $folder) { + &$raw_length, $folder=NULL) { + + if (is_null($folder)) + die('Internal error. Cannot pass NULL folder name to Deliver_IMAP::send_mail()'); // write the body without providing a stream so we // can calculate the final length - after this call, -- 2.25.1