added additional parameter checks
This commit is contained in:
parent
ad4b546d76
commit
1316556a7a
|
@ -69,6 +69,8 @@ function listSort($sort, $attr_array, $info) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!is_array($attr_array)) return $info;
|
||||
if (!is_string($sort)) return $info;
|
||||
// sort and return account list
|
||||
usort($info, "cmp_array");
|
||||
return $info;
|
||||
|
|
Loading…
Reference in New Issue