Net/XMPP.php
authoredward <edward@roojs.com>
Mon, 15 Jan 2018 04:29:46 +0000 (12:29 +0800)
committeredward <edward@roojs.com>
Mon, 15 Jan 2018 04:29:46 +0000 (12:29 +0800)
Net/XMPP.php

index 5998f62..ba746eb 100644 (file)
@@ -112,14 +112,17 @@ class Net_XMPP extends Net_XMPP_XMLStream
      * @param boolean $printlog
      * @param string  $loglevel
      */
-    public function __construct($host, $port, $user, $password, $resource, $server = null, $printlog = false, $loglevel = null, $xoauth = false) {
+    public function __construct($host, $port, $user, $password, $resource, $server = null, $printlog = false, $loglevel = null, $xoauth = false) 
+    {
         parent::__construct($host, $port, $printlog, $loglevel);
 
         $this->user = $user;
         $this->password = $password;
         $this->resource = $resource;
-        if (!$server)
+        if (!$server) {
             $server = $host;
+        }
+            
         $this->basejid = $this->user . '@' . $this->host;
 
         $this->xoauth = $xoauth;