|
|
@@ -33,10 +33,15 @@ if(!filter_var($accountName, FILTER_VALIDATE_EMAIL)) {
|
|
|
exit;
|
|
|
}
|
|
|
// check reserved mail addresses
|
|
|
-$zmAuthPIDs = Capsule::table('tblproducts')
|
|
|
+$zmAuthPIDs = array();
|
|
|
+$zmAuthPIDsObj = Capsule::table('tblproducts')
|
|
|
->select('id')
|
|
|
->where('gid', zmAuthGids)
|
|
|
- ->get();
|
|
|
+ ->get()
|
|
|
+ ->toArray();
|
|
|
+foreach ($zmAuthPIDsObj as $zmAuthPID) {
|
|
|
+ array_push($zmAuthPIDs, $zmAuthPID->id);
|
|
|
+}
|
|
|
$hostingIDs = Capsule::table('tblhosting')
|
|
|
->select('id')
|
|
|
->where('packageid', $zmAuthPIDs)
|