Explorar o código

Fix E_STRICT notice

pdontthink %!s(int64=13) %!d(string=hai) anos
pai
achega
f63b89047c
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      class/deliver/Deliver_IMAP.class.php

+ 4 - 1
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,