Skip to content

Commit

Permalink
add default username if config is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoh committed Oct 25, 2015
1 parent af848e2 commit 0a8bc0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion globaladdressbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function init()
$this->load_config();
$this->add_texts('localization/');

$this->user_name = $rcmail->config->get('globaladdressbook_user');
$this->user_name = $rcmail->config->get('globaladdressbook_user', '[global_addressbook_user]');
$this->user_name = str_replace('%d', $rcmail->user->get_username('domain'), $this->user_name);
$this->user_name = str_replace('%h', $_SESSION['storage_host'], $this->user_name);
$this->groups = $rcmail->config->get('globaladdressbook_groups', false);
Expand Down

0 comments on commit 0a8bc0c

Please sign in to comment.