fixed from error
This commit is contained in:
@@ -7,7 +7,7 @@ class Members extends Renderer {
|
||||
$members = $this->getMemberList(true);
|
||||
$tableBody = '<tbody>';
|
||||
foreach ($members as $row) {
|
||||
$tableBody .= '<tr>'
|
||||
$tableBody .= '<tr' . ($row['status_text'] !== 'Mitgliedschaft bestätigt' ? ' style="color:#a0a0a0"' : '') . '>'
|
||||
. '<td>' . $row['id'] . '</td>'
|
||||
. '<td>' . $row['last_name'] . ', ' . $row['first_name'] . '</td>'
|
||||
. '<td>' . $row['email'] . '</td>'
|
||||
|
||||
@@ -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