fallback for type == null added

git-svn-id: svn://netflint.net/xmpphp@54 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
temp 2008-09-01 21:36:46 +00:00
parent d65c7b9934
commit 2744fa4457
1 changed files with 5 additions and 0 deletions

View File

@ -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);