From 12badc6dc1c4ffcb13afd96d97408d94b27ddbcd Mon Sep 17 00:00:00 2001 From: skeeter Date: Wed, 17 Jan 2001 02:50:16 +0000 Subject: [PATCH] cleanups - to make it more OO --- phpgwapi/inc/class.send.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.send.inc.php b/phpgwapi/inc/class.send.inc.php index 19a48d6d2f..721594f65f 100644 --- a/phpgwapi/inc/class.send.inc.php +++ b/phpgwapi/inc/class.send.inc.php @@ -88,7 +88,7 @@ class send { $header .= "Content-Disposition: inline\n" . "Content-description: Mail message body\n"; } - if ($phpgw_info["user"]["preferences"]["email"]["mail_server_type"] == "imap" && $phpgw_info["user"]["apps"]["email"]){ + if ($phpgw_info["user"]["preferences"]["email"]["mail_server_type"] == "imap" && $phpgw_info["user"]["apps"]["email"] && is_object($phpgw->msg)){ $stream = $phpgw->msg->login("Sent"); $phpgw->msg->append($stream, "Sent", $header, $body); $phpgw->msg->close($stream);