浏览代码

fix url building

andre 3 年之前
父节点
当前提交
1d7bd5d8e8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/cwp7/Admin.php

+ 1 - 1
api/cwp7/Admin.php

@@ -52,7 +52,7 @@ class cwp7_Admin {
             $this->constructorSuccess = false;
             return array('error_msg' => 'Error: Cannot resolve ' . $cwp7Hostname[0] . ', check server configuration');
         }
-        $this->cwp7Port = ($cwp7Hostname[1]) ? $cwp7Hostname[1] :  '2304';
+        $this->cwp7Port = (isset($cwp7Hostname[1])) ? $cwp7Hostname[1] :  '2304';
         $this->cwp7URL = $this->cwp7ConType . $cwp7Hostname[0] . ':' . $this->cwp7Port;
         $this->cwp7Token = $token;
         $this->constructorSuccess = true;