Explorar o código

add functions

andre %!s(int64=3) %!d(string=hai) anos
pai
achega
43372a1335
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      cwp7.php

+ 3 - 3
cwp7.php

@@ -21,9 +21,9 @@ function cwp7_ConfigOptions() {
     $serverIDObj = Capsule::table('tblservergroupsrel')
         ->select('serverid')
         ->where('groupid', '=', $serverGroupID)
-        ->get();
-/*    $serverIDArray = $serverIDObj->serverid;
-    $server = Capsule::table('tblservers')
+        ->first();
+    $serverIDArray = $serverIDObj->serverid;
+/*    $server = Capsule::table('tblservers')
         ->select('ipaddress', 'username', 'password')
         ->where('id', $serverIDArray)
         ->where('active', '=', 1)