Vault fixes to make it run, hopefully

This commit is contained in:
Karl Cordes 2011-03-10 19:13:10 +11:00
parent 1cf6675367
commit 486c83bc3c

View file

@ -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'];