From 805f04f50893a42c91aef86d93cbd1a02c011d85 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 7 Jul 2018 14:04:43 +0200 Subject: [PATCH] fixed PHP notice --- lam/lib/modules/sambaSamAccount.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/modules/sambaSamAccount.inc b/lam/lib/modules/sambaSamAccount.inc index 64423031..bc8b7b5f 100644 --- a/lam/lib/modules/sambaSamAccount.inc +++ b/lam/lib/modules/sambaSamAccount.inc @@ -2429,7 +2429,7 @@ class sambaSamAccount extends baseModule implements passwordService { else { // update password history if (sambaSamAccount::isPasswordHistoryEnabled($this->selfServiceSettings->moduleSettings)) { - $sambaPasswordHistory = empty($attributes['sambaPasswordHistory']) ? null : $attributes['sambaPasswordHistory']; + $sambaPasswordHistory = empty($attributes['sambaPasswordHistory']) ? array() : $attributes['sambaPasswordHistory']; while (sizeof($sambaPasswordHistory) > ($sambaDomain->pwdHistoryLength - 1)) { if (empty($this->selfServiceSettings->moduleSettings['sambaSamAccount_history'][0]) || ($this->selfServiceSettings->moduleSettings['sambaSamAccount_history'][0] == 'yes_deleteLast')) { array_pop($sambaPasswordHistory);