diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-12-03 17:27:25 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-12-03 17:27:25 (GMT) |
commit | 4c180691b640ae416239f1bcd375ea513cf5d50b (patch) | |
tree | 8a11716b78358e5bdb976db99293f91f30dd0690 /utils/rhrd-user | |
parent | cb42bb3574fab1e761c6562c60ee3b5e3c8af09d (diff) |
some cleanup
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; } |