Bug 13419: (QA followup) remove useless warnings

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Tomas Cohen Arazi 2015-04-22 14:58:05 -03:00
parent 46fbcaadf1
commit 88eb0323d7
1 changed files with 5 additions and 3 deletions

View File

@ -1949,11 +1949,13 @@ sub haspermission {
if ( $subperm eq '*' ) {
return 0 unless ( $flags->{$module} == 1 or ref( $flags->{$module} ) );
} else {
return 0 unless ( $flags->{$module} == 1 or
return 0 unless (
( defined $flags->{$module} and
$flags->{$module} == 1 )
or
( ref( $flags->{$module} ) and
exists $flags->{$module}->{$subperm} and
$flags->{$module}->{$subperm} == 1
)
$flags->{$module}->{$subperm} == 1 )
);
}
}