diff options
Diffstat (limited to 'lib/RHRD/rddb.pm')
-rwxr-xr-x | lib/RHRD/rddb.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/RHRD/rddb.pm b/lib/RHRD/rddb.pm index 8f519c6..ccbff24 100755 --- a/lib/RHRD/rddb.pm +++ b/lib/RHRD/rddb.pm @@ -1794,10 +1794,10 @@ sub set_musicpools_user my $rows = $ctx->{'dbh'}->do($sql, undef, $value, $username) or return (undef, 'ERROR', "Database Error: " . $ctx->{'dbh'}->errstr); - unless($rows == 1) { + if($rows < 1) { return (undef, 'ERROR', "user '" . $username . "' not known by rivendell") } - return (1, 'OK', 'success'); + return ($rows, 'OK', 'success'); } sub get_musicpools_clocks |