diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/migrate_from_trac.rake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tasks/migrate_from_trac.rake b/lib/tasks/migrate_from_trac.rake index 2eca13dc3..5c006bc82 100644 --- a/lib/tasks/migrate_from_trac.rake +++ b/lib/tasks/migrate_from_trac.rake @@ -157,6 +157,8 @@ namespace :redmine do end def self.find_or_create_user(username, project_member = false) + return User.anonymous if username.blank? + u = User.find_by_login(username) if !u # Create a new user if not found |