[Rt-commit] rt branch, 4.0-trunk, updated. rt-4.0.11-64-g808beae

? sunnavy sunnavy at bestpractical.com
Fri Apr 19 10:24:38 EDT 2013


The branch, 4.0-trunk has been updated
       via  808beaeaf0a531fb5f080164b25697538b9b1dad (commit)
      from  dc221d91198594f515ab22937f3bb6b421d2faf0 (commit)

Summary of changes:
 lib/RT/User.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 808beaeaf0a531fb5f080164b25697538b9b1dad
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Apr 19 21:11:44 2013 +0800

    @_ in scalar context returns its size, which is not what we want

diff --git a/lib/RT/User.pm b/lib/RT/User.pm
index e38e51c..be7f21b 100644
--- a/lib/RT/User.pm
+++ b/lib/RT/User.pm
@@ -1428,7 +1428,7 @@ $user->WatchedQueues('Cc', 'AdminCc');
 sub WatchedQueues {
 
     my $self = shift;
-    my @roles = @_ || ('Cc', 'AdminCc');
+    my @roles = @_ ? @_ : ('Cc', 'AdminCc');
 
     $RT::Logger->debug('WatcheQueues got user ' . $self->Name);
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list