Permalink
Browse files

Initialize before calling main

I need the user mappings to make things work properly.
  • Loading branch information...
1 parent 5281570 commit 83c14432fc721974f4edf6b7efb2dd1fa80272b1 @afresh1 committed Aug 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 rt-ticket-importer
View
@@ -68,8 +68,6 @@ $SIG{__WARN__} = "";
# drop setgid permissions, which is version 3.0 specific
eval { RT::DropSetGIDPermissions() };
-main() unless caller;
-
# Keep track of what has been converted.
my %E;
@@ -78,6 +76,8 @@ $E{Users} = {
6 => $RT::Nobody->Id,
};
+main() unless caller;
+
sub ConvertUser {
my ($user) = @_;
return $RT::Nobody->Id unless $user;

0 comments on commit 83c1443

Please sign in to comment.