diff --git a/lib/tasks/migrate_from_trac.rake b/lib/tasks/migrate_from_trac.rake index 2eca13dc..5c006bc8 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