Skip to content

Commit

Permalink
Merge branch '4.x' into 5981-fix-contact-null
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Oct 31, 2023
2 parents 5fe9220 + 3799ab5 commit 026bf5b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/Http/Controllers/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public function index()
if (auth()->user()->me_contact_id) {
$meContact = Contact::where('account_id', auth()->user()->account_id)
->find(auth()->user()->me_contact_id);
$existingContacts->prepend($meContact);
if ($meContact) {
$existingContacts->prepend($meContact);
}
}

$accountHasLimitations = AccountHelper::hasLimitations(auth()->user()->account);
Expand Down
2 changes: 1 addition & 1 deletion config/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

'sendmail' => [
'transport' => 'sendmail',
'path' => '/usr/sbin/sendmail -bs',
'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
],

'log' => [
Expand Down
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ parameters:
- */Http/Resources/**/*.php
- */ExportResources/**/*.php
- */ExportResources/*.php
- */Console/Commands/ImportAccounts.php

0 comments on commit 026bf5b

Please sign in to comment.