Browse Source

check reserved addresses

andre 4 years ago
parent
commit
9a6f5433e0
1 changed files with 2 additions and 3 deletions
  1. 2 3
      zimbraAddressAvailable.php

+ 2 - 3
zimbraAddressAvailable.php

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