summaryrefslogtreecommitdiff
path: root/it_user.class
diff options
context:
space:
mode:
authorChristian A. Weber2020-07-25 12:52:17 +0200
committerChristian A. Weber2020-07-25 12:52:17 +0200
commit7f8317ac9f5bff192e6355ef1be1533b0726ef05 (patch)
treec843b15db87d10a3d91749646da1f1c22a7692eb /it_user.class
parente92689015d96a488801c491cabc89e70fd20db2e (diff)
downloaditools-7f8317ac9f5bff192e6355ef1be1533b0726ef05.tar.gz
itools-7f8317ac9f5bff192e6355ef1be1533b0726ef05.tar.bz2
itools-7f8317ac9f5bff192e6355ef1be1533b0726ef05.zip
don't trigger legacy warning if both username and uid are empty
Diffstat (limited to 'it_user.class')
-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 = "";