From afb8d6ebdd1ec6a494050d555a2308e5d8a9a5c5 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 1 May 2013 12:35:09 +0000 Subject: [PATCH] fixed PHP notice --- lam/lib/modules/posixAccount.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 3bda6397..59ea6559 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -2671,7 +2671,7 @@ class posixAccount extends baseModule implements passwordService { for ($i = 0; $i < sizeof($wildcards[0]); $i++) { $wc = substr($wildcards[0][$i], 1, strlen($wildcards[0][$i]) - 2); $value = ''; - if (isset($attributes[$wc][0])) { + if (isset($attributes[$wc][0]) && !empty($attributes[$wc][0])) { $value = $attributes[$wc][0][0]; } $format = str_replace('@' . $wc . '@', $value, $format);