소스 검색

Fix warnings

George Baugh 2 년 전
부모
커밋
18a2a3fe15
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;