Commit fe652806 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3399 Automatic uid is for template only

parent 2a5a3807
......@@ -800,7 +800,7 @@ class user extends plugin
}
/* Avoid empty uid */
if ($this->uid == '') {
if ($this->is_template && ($this->uid == '')) {
$this->uid = '%c|uid of '.$this->cn.'%';
}
}
......@@ -834,7 +834,7 @@ class user extends plugin
if($this->preferredLanguage=="0") $this->preferredLanguage ="";
/* Avoid empty uid */
if ($this->uid == '') {
if ($this->is_template && ($this->uid == '')) {
$this->uid = '%c|uid of '.$this->cn.'%';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment