summaryrefslogtreecommitdiffstats
path: root/extensions/PhabBugz/lib
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/PhabBugz/lib')
-rw-r--r--extensions/PhabBugz/lib/User.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/PhabBugz/lib/User.pm b/extensions/PhabBugz/lib/User.pm
index 1bf1a842d..da573be37 100644
--- a/extensions/PhabBugz/lib/User.pm
+++ b/extensions/PhabBugz/lib/User.pm
@@ -135,9 +135,9 @@ sub match {
my $phab_users = [];
my $result;
do {
- $result = request( 'user.search', $data );
- if ( exists $result->{result}{data} && @{ $result->{result}{data} } ) {
- foreach my $user ( @{ $result->{result}{data} } ) {
+ $result = request( 'user.search', $data )->{result};
+ if ( exists $result->{data} && @{ $result->{data} } ) {
+ foreach my $user ( @{ $result->{data} } ) {
push @$phab_users, $class->new($user);
}
}