andre 3 éve
szülő
commit
1d7bd5d8e8
1 módosított fájl, 1 hozzáadás és 1 törlés
  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;