diff options
Diffstat (limited to 'utils/rhrd-user')
-rwxr-xr-x | utils/rhrd-user | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/rhrd-user b/utils/rhrd-user index 8aeacc9..4d613b6 100755 --- a/utils/rhrd-user +++ b/utils/rhrd-user @@ -105,7 +105,7 @@ sub is_grids my ($ctx, $username) = @_; my ($authorized, $status, $errorstring) = RHRD::rddb::is_musicgrid_user($ctx, $username); - if(!defined $authorized) { + unless(defined $authorized) { print STDERR "$status: $errorstring\n"; return 1; } @@ -117,7 +117,7 @@ sub set_grids { my ($ctx, $username, $value) = @_; - unless(defined($value) && ($value == '0' || $value == '1')) { + unless(defined $value && ($value == '0' || $value == '1')) { print_usage(); return 1; } |