fallback for type == null added
git-svn-id: svn://netflint.net/xmpphp@54 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
parent
d65c7b9934
commit
2744fa4457
@ -144,6 +144,11 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream {
|
|||||||
* @param string $subject
|
* @param string $subject
|
||||||
*/
|
*/
|
||||||
public function message($to, $body, $type = 'chat', $subject = null, $payload = null) {
|
public function message($to, $body, $type = 'chat', $subject = null, $payload = null) {
|
||||||
|
if(is_null($type))
|
||||||
|
{
|
||||||
|
$type = 'chat';
|
||||||
|
}
|
||||||
|
|
||||||
$to = htmlspecialchars($to);
|
$to = htmlspecialchars($to);
|
||||||
$body = htmlspecialchars($body);
|
$body = htmlspecialchars($body);
|
||||||
$subject = htmlspecialchars($subject);
|
$subject = htmlspecialchars($subject);
|
||||||
|
Loading…
Reference in New Issue
Block a user