From: cajus Date: Fri, 2 Oct 2009 08:08:19 +0000 (+0000) Subject: Added lost commit X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=76a71e36905ed78e808b6dc5dbd996dfa79d9e4d;p=gosa.git Added lost commit git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14458 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index d011ff508..92bd6f7f9 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -1164,8 +1164,11 @@ class user extends plugin if (!is_array($this->$attr)){ $pattern= preg_replace("/%$attr/", $this->$attr, $pattern); } else { - msg_dialog::display(_("Error"), _("Cannot build RDN: invalid attribute parameters!"), ERROR_DIALOG); - break; + // Array elements cannot be used for ID generation + if (preg_match("/%$attr/", $pattern)) { + msg_dialog::display(_("Error"), _("Cannot build RDN: invalid attribute parameters!"), ERROR_DIALOG); + break; + } } }