diff --git a/app/Ninja/Repositories/AccountRepository.php b/app/Ninja/Repositories/AccountRepository.php index 740431432d..66a2303173 100644 --- a/app/Ninja/Repositories/AccountRepository.php +++ b/app/Ninja/Repositories/AccountRepository.php @@ -594,9 +594,6 @@ class AccountRepository $record->save(); - return $this->getUserAccounts($record); - - /* $users = $this->getUserAccounts($record); // Pick the primary user @@ -652,7 +649,6 @@ class AccountRepository } return $users; - */ } public function unlinkAccount($account) { diff --git a/app/Ninja/Repositories/InvoiceRepository.php b/app/Ninja/Repositories/InvoiceRepository.php index 59d2f0e1a4..1212b2c152 100644 --- a/app/Ninja/Repositories/InvoiceRepository.php +++ b/app/Ninja/Repositories/InvoiceRepository.php @@ -390,7 +390,7 @@ class InvoiceRepository extends BaseRepository if (isset($data['terms']) && trim($data['terms'])) { $invoice->terms = trim($data['terms']); - } elseif ($isNew && ! $invoice->is_recurring && $$account->{"{$entityType}_terms"}) { + } elseif ($isNew && ! $invoice->is_recurring && $account->{"{$entityType}_terms"}) { $invoice->terms = $account->{"{$entityType}_terms"}; } else { $invoice->terms = '';