Browse Source

check reserved addresses

andre 4 years ago
parent
commit
3075af5d69
1 changed files with 4 additions and 2 deletions
  1. 4 2
      zimbraAddressAvailable.php

+ 4 - 2
zimbraAddressAvailable.php

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