fixed from error
This commit is contained in:
@@ -554,9 +554,9 @@ class Renderer {
|
||||
ON cp.id = c.position_id
|
||||
WHERE cs.`status_text` NOT IN ("Mitgliedschaft abgelehnt", "Mitgliedschaft gekündigt")
|
||||
queryend;
|
||||
$result = mysqli_query($this->dbConnection, $query);
|
||||
$entries = [];
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
$result = mysqli_query($this->dbConnection, $query);
|
||||
$entries = [];
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
$entry = [
|
||||
'last_name' => $this->decode($row['last_name'], $row['salt']),
|
||||
'first_name' => $this->decode($row['first_name'], $row['salt']),
|
||||
@@ -588,8 +588,8 @@ queryend;
|
||||
|
||||
protected function sortUserList($userList): array {
|
||||
usort($userList, function($a, $b) {
|
||||
$nameComparison = strcmp($a['last_name'], $b['last_name']);
|
||||
return ($nameComparison !== 0) ? $nameComparison : strcmp($a['first_name'], $b['first_name']);
|
||||
$nameComparison = stricmp($a['last_name'], $b['last_name']);
|
||||
return ($nameComparison !== 0) ? $nameComparison : stricmp($a['first_name'], $b['first_name']);
|
||||
});
|
||||
return $userList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user