fixed from error
This commit is contained in:
@@ -7,7 +7,7 @@ class Members extends Renderer {
|
|||||||
$members = $this->getMemberList(true);
|
$members = $this->getMemberList(true);
|
||||||
$tableBody = '<tbody>';
|
$tableBody = '<tbody>';
|
||||||
foreach ($members as $row) {
|
foreach ($members as $row) {
|
||||||
$tableBody .= '<tr>'
|
$tableBody .= '<tr' . ($row['status_text'] !== 'Mitgliedschaft bestätigt' ? ' style="color:#a0a0a0"' : '') . '>'
|
||||||
. '<td>' . $row['id'] . '</td>'
|
. '<td>' . $row['id'] . '</td>'
|
||||||
. '<td>' . $row['last_name'] . ', ' . $row['first_name'] . '</td>'
|
. '<td>' . $row['last_name'] . ', ' . $row['first_name'] . '</td>'
|
||||||
. '<td>' . $row['email'] . '</td>'
|
. '<td>' . $row['email'] . '</td>'
|
||||||
|
|||||||
@@ -588,8 +588,8 @@ queryend;
|
|||||||
|
|
||||||
protected function sortUserList($userList): array {
|
protected function sortUserList($userList): array {
|
||||||
usort($userList, function($a, $b) {
|
usort($userList, function($a, $b) {
|
||||||
$nameComparison = strcmp($a['last_name'], $b['last_name']);
|
$nameComparison = stricmp($a['last_name'], $b['last_name']);
|
||||||
return ($nameComparison !== 0) ? $nameComparison : strcmp($a['first_name'], $b['first_name']);
|
return ($nameComparison !== 0) ? $nameComparison : stricmp($a['first_name'], $b['first_name']);
|
||||||
});
|
});
|
||||||
return $userList;
|
return $userList;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user