Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Short Term
-
Component/s: None
-
Labels:None
Description
The validateConnection() method fetches a list of accounts from the API. The response for an installation with no accounts is:
stdClass Object ( [type] => success [response] => stdClass Object ( [data] => Array ( ) [message] => 0 account(s) ) )
But this means that the return from the method is an empty array() which evaluates to boolean false. The validation fails even though the connect is valid.