andre 4 жил өмнө
parent
commit
3075af5d69

+ 4 - 2
zimbraAddressAvailable.php

@@ -33,10 +33,12 @@ if(!filter_var($accountName, FILTER_VALIDATE_EMAIL)) {
     exit;
 }
 // check reserved mail addresses 
-$zmAuthPIDs = Capsule::table('tblproducts')
+$zmAuthPIDs = json_decode(json_encode(Capsule::table('tblproducts')
 	->select('id')
 	->where('gid', zmAuthGids)
-	->raw();
+	->get()
+	->toArray()
+));
 $hostingIDs = Capsule::table('tblhosting')
 	->select('id')
 	->where('packageid', $zmAuthPIDs)