Skip to content

Commit

Permalink
fix Undefined array key "storage_host"
Browse files Browse the repository at this point in the history
  • Loading branch information
bennet0496 committed Mar 20, 2024
1 parent 9489247 commit a8b67d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ private function resolve_username(string $user = ""): string
$imap_user = empty($_SESSION['username']) ? $mail_local : $_SESSION['username'];

return str_replace(["%s", "%i", "%e", "%l", "%u", "%d", "%h"],
[$user, $imap_user, $mail, $mail_local, $mail_local, $mail_domain, $_SESSION['storage_host']],
[$user, $imap_user, $mail, $mail_local, $mail_local, $mail_domain, $_SESSION['storage_host'] ?? ""],
$username_tmpl);
}

Expand Down

0 comments on commit a8b67d7

Please sign in to comment.