Vault fixes to make it run, hopefully
This commit is contained in:
parent
1cf6675367
commit
486c83bc3c
7
vendors/shells/vault_two.php
vendored
7
vendors/shells/vault_two.php
vendored
|
|
@ -199,7 +199,7 @@ class VaultTwoShell extends Shell {
|
|||
);
|
||||
|
||||
$this->User->create();
|
||||
if($this->User->save($newUser)) {
|
||||
if($this->User->save($newUser, false)) {
|
||||
$newID = $this->User->id;
|
||||
echo "New User '{$recEmail}' Added with ID: {$newID}\n";
|
||||
$recipientsIDs[$type][] = $newID;
|
||||
|
|
@ -289,6 +289,11 @@ class VaultTwoShell extends Shell {
|
|||
$biggestHTML = 0;
|
||||
|
||||
foreach($attachments as $attachment) {
|
||||
if(empty($attachment['type'])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
$newEmail['EmailAttachment'][$attachmentCount]['name'] = $attachment['name'];
|
||||
$newEmail['EmailAttachment'][$attachmentCount]['type'] = $attachment['type'];
|
||||
$newEmail['EmailAttachment'][$attachmentCount]['size'] = $attachment['size'];
|
||||
|
|
|
|||
Loading…
Reference in a new issue