From 2744fa445729fa72dae52b9b24bec015da286750 Mon Sep 17 00:00:00 2001 From: temp Date: Mon, 1 Sep 2008 21:36:46 +0000 Subject: [PATCH] fallback for type == null added git-svn-id: svn://netflint.net/xmpphp@54 ef36c318-a008-4979-b6e8-6b496270793b --- XMPPHP/XMPP.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/XMPPHP/XMPP.php b/XMPPHP/XMPP.php index a69a647..b96fe25 100644 --- a/XMPPHP/XMPP.php +++ b/XMPPHP/XMPP.php @@ -144,6 +144,11 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream { * @param string $subject */ public function message($to, $body, $type = 'chat', $subject = null, $payload = null) { + if(is_null($type)) + { + $type = 'chat'; + } + $to = htmlspecialchars($to); $body = htmlspecialchars($body); $subject = htmlspecialchars($subject);