Skip to content

Commit 508e738

Browse files
authored
Merge pull request #44 from CubeCoders/PhonicUK-patch-1
Update AMP.php
2 parents 864384b + 637f542 commit 508e738

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

modules/servers/AMP/AMP.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ function ($table) {
9090
$version = $client->version;
9191

9292
$info = $client->call('Core/GetModuleInfo');
93-
$ampVersion = $info['result']['AMPVersion'];
94-
$featureSet = $info['result']['FeatureSet'];
93+
$ampVersion = $info['AMPVersion'];
94+
$featureSet = $info['FeatureSet'];
9595

9696
$exploded = explode('.', $ampVersion);
9797

@@ -223,7 +223,7 @@ function AMP_TestConnection(array $params)
223223
try {
224224
AMP_commercialCheck($params);
225225
$info = $client->call('Core/GetModuleInfo');
226-
$ampVersion = $info['result']['AMPVersion'];
226+
$ampVersion = $info['AMPVersion'];
227227
$exploded = explode('.', $ampVersion);
228228

229229
if(count($exploded) == 1)
@@ -466,7 +466,7 @@ function AMP_AdminServicesTabFields(array $params)
466466
$client = new Client($params);
467467

468468
$response = $client->call('ADSModule/GetGroup', [ 'GroupId' => $service->targetId ] );
469-
foreach($response['result']['AvailableInstances'] as $i)
469+
foreach($response['AvailableInstances'] as $i)
470470
{
471471
if($i['InstanceID'] == $service->instanceId)
472472
{
@@ -578,7 +578,7 @@ function AMP_ClientArea(array $params)
578578
$vars['instanceId'] = $service->instanceId;
579579

580580
$response = $client->call('ADSModule/GetGroup', [ 'GroupId' => $service->targetId ] );
581-
foreach($response['result']['AvailableInstances'] as $i)
581+
foreach($response['AvailableInstances'] as $i)
582582
{
583583
if($i['InstanceID'] == $service->instanceId)
584584
{
@@ -723,9 +723,8 @@ function AMP_commercialCheck(array $params)
723723
$client = new Client($params);
724724
try {
725725
$info = $client->call('Core/GetModuleInfo');
726-
$featureSet = $info['result']['FeatureSet'];
727-
728-
$commercial = in_array("CommercialUsage", $featureSet);
726+
$featureSet = $info['FeatureSet'];
727+
$commercial = in_array("CommercialUsage", $featureSet);
729728

730729
if(!$commercial)
731730
{

0 commit comments

Comments
 (0)