Browse Source

check reserved addresses

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

+ 4 - 2
zimbraAddressAvailable.php

@@ -36,11 +36,13 @@ if(!filter_var($accountName, FILTER_VALIDATE_EMAIL)) {
 $zmAuthPIDs = Capsule::table('tblproducts')
 $zmAuthPIDs = Capsule::table('tblproducts')
 	->select('id')
 	->select('id')
 	->where('gid', zmAuthGids)
 	->where('gid', zmAuthGids)
-	->get();
+	->get()
+	->toArray();
 $hostingIDs = Capsule::table('tblhosting')
 $hostingIDs = Capsule::table('tblhosting')
 	->select('id')
 	->select('id')
 	->where('packageid', $zmAuthPIDs)
 	->where('packageid', $zmAuthPIDs)
-	->get();
+	->get()
+	->toArray();
 
 
 logModuleCall(
 logModuleCall(
 	'zimbrasingle',
 	'zimbrasingle',