summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTimotheus Pokorra <tp@tbits.net>2015-04-22 12:26:57 +0200
committerTimotheus Pokorra <tp@tbits.net>2015-04-22 12:26:57 +0200
commitba6cc09ee060526624b92d9809f5ccb182793cb2 (patch)
tree98176909a6e9e0504bace61c32f52eed26ad2356 /lib
parentda251955a799248e7e8b465a1faabf9ea5f25eac (diff)
downloadwebadmin-ba6cc09ee060526624b92d9809f5ccb182793cb2.tar.gz
password policy: fix problem if no policy is defined
must not create specialChars but leave the policy undefined
Diffstat (limited to 'lib')
-rw-r--r--lib/password_policy.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/password_policy.php b/lib/password_policy.php
index 9482e76..38cac16 100644
--- a/lib/password_policy.php
+++ b/lib/password_policy.php
@@ -31,7 +31,7 @@ class password_policy {
$passwordpolicy = $conf->get('kolab', 'password_policy', Conf::AUTO);
- if (!isset($passwordpolicy['specialChars'])) {
+ if (isset($passwordpolicy) && !isset($passwordpolicy['specialChars'])) {
$passwordpolicy['specialChars'] = self::get_special_characters($passwordpolicy);
}