summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_user.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_user.class b/it_user.class
index 7ebdc9f..3bb9c3a 100644
--- a/it_user.class
+++ b/it_user.class
@@ -93,7 +93,7 @@ function read($id = null)
$this->username = $this->{$this->p['username_field']};
# username == uid means we don't have a username yet
- if ($this->username == $this->uid) # FIXME 2020-12 CS Remove support for legacy user records with username = uid
+ if ($this->username && $this->username == $this->uid) # FIXME 2020-12 CS Remove support for legacy user records with username = uid
{
it::error(['to' => 'schneider@search.ch', 'title' => "Legacy user record with username = uid ($this->uid)"]);
$this->username = "";