added additional parameter checks

This commit is contained in:
Roland Gruber 2004-09-25 13:38:56 +00:00
parent ad4b546d76
commit 1316556a7a
1 changed files with 2 additions and 0 deletions

View File

@ -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;