Skip to content

Commit

Permalink
updated #2
Browse files Browse the repository at this point in the history
  • Loading branch information
nliautaud committed Mar 26, 2015
1 parent 6a59a74 commit c29ad0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _pico_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ function html_form()
* @param string $pass the user password hash (hash)
* @return array the list of results in pairs "path/group/username" => "hash"
*/
function search_users( $name, $pass = null, $users = array() , $path = '' )
function search_users( $name, $pass = null, $users = null , $path = '' )
{
if (!$users) $users = $this->users;
if ($users === null) $users = $this->users;
if ($path) $path .= '/';
$results = array();
foreach ($users as $key => $val)
Expand Down

0 comments on commit c29ad0b

Please sign in to comment.