Explorar el Código

check reserved addresses

andre hace 4 años
padre
commit
3075af5d69
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      zimbraAddressAvailable.php

+ 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)