Skip to content

Commit c29ad0b

Browse files
committed
updated #2
1 parent 6a59a74 commit c29ad0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_pico_users.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ function html_form()
167167
* @param string $pass the user password hash (hash)
168168
* @return array the list of results in pairs "path/group/username" => "hash"
169169
*/
170-
function search_users( $name, $pass = null, $users = array() , $path = '' )
170+
function search_users( $name, $pass = null, $users = null , $path = '' )
171171
{
172-
if (!$users) $users = $this->users;
172+
if ($users === null) $users = $this->users;
173173
if ($path) $path .= '/';
174174
$results = array();
175175
foreach ($users as $key => $val)

0 commit comments

Comments
 (0)