Browse Source

Fix warnings

George Baugh 2 năm trước cách đây
mục cha
commit
18a2a3fe15
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/Trog/DataModule.pm

+ 1 - 1
lib/Trog/DataModule.pm

@@ -132,7 +132,7 @@ sub _fixup ( $self, @filtered ) {
         $subj->{method} = 'GET' unless exists( $subj->{method} );
 
         $subj->{user_class}   = $user2display{$subj->{user}};
-        $subj->{user_class}   =~ tr/ /_/;
+        $subj->{user_class}   =~ tr/ /_/ if $subj->{user_class};
 
         $subj
     } @filtered;