Skip to content

Commit 000cbbf

Browse files
author
Frank Gambino
committed
Update Trees.php
1 parent ea29a74 commit 000cbbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Github/Api/GitData/Trees.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Trees extends AbstractApi
2323
*/
2424
public function show($username, $repository, $sha, $recursive = false)
2525
{
26-
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/git/trees/'.rawurlencode($sha), array('recursive' => $recursive ? 1 : null));
26+
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/git/trees/'.rawurlencode($sha), $recursive ? array('recursive' => 1) : array());
2727
}
2828

2929
/**

0 commit comments

Comments
 (0)