solusio / SolusVM-WHMCS-Module

SolusVM WHMCS Module
https://documentation.solusvm.com/display/DOCS/WHMCS
62 stars 59 forks source link

Update solusvmpro.php #53

Closed powerpbx closed 2 years ago

powerpbx commented 2 years ago

We needed to make the following change to get WHMCS > System Settings > Products/Services > SomeSolusProduct > Module Settings to work populating Default Plan etc. from the Master Node.

The test for array_exists and count does not work (at least not for us) because the variable is an Illuminate Collection, not an array. https://laravel.com/docs/9.x/collections#method-isnotempty https://laravel.com/docs/9.x/collections#method-count

We are using PHP v7.3 and WHMCS v8.x

powerpbx commented 2 years ago

I noticed the reason it doesn't work for us. It was a previous change that we have not implemented yet.