|
|
@@ -69,12 +69,13 @@ $customfieldsvaluesObj = Capsule::table('tblcustomfieldsvalues')
|
|
|
->whereIn('fieldid', $customfieldIDs)
|
|
|
->get()
|
|
|
->toArray();
|
|
|
-foreach ($customfieldsvaluesObj as $customfieldsvalue) {
|
|
|
- $mailname = $customfieldsvalue->value;
|
|
|
- next($customfieldsvalue);
|
|
|
- $maildomain = $customfieldsvalue->value;
|
|
|
- $reservedAddress = $mailname . '@' . $maildomain;
|
|
|
- array_push($customfieldsvalues, $reservedAddress);
|
|
|
+$i = 0;
|
|
|
+while ($i < count($customfieldIDsObj)) {
|
|
|
+ $mailname = $customfieldIDsObj[$i]->value;
|
|
|
+ $i++;
|
|
|
+ $maildomain = $customfieldsvalue[$i]->value;
|
|
|
+ $reservedAddress = $mailname . '@' . $maildomain;
|
|
|
+ array_push($customfieldsvalues, $reservedAddress);
|
|
|
}
|
|
|
|
|
|
logModuleCall(
|