fixed from error
This commit is contained in:
@@ -5,6 +5,7 @@ class Members extends Renderer {
|
||||
public function __construct(?string $templateName = null) {
|
||||
parent::__construct($templateName);
|
||||
$members = $this->getMemberList(true);
|
||||
$activeMembers = 0;
|
||||
$tableBody = '<tbody>';
|
||||
foreach ($members as $row) {
|
||||
$tableBody .= '<tr' . ($row['status_text'] !== 'Mitgliedschaft bestätigt' ? ' style="color:#a0a0a0"' : '') . '>'
|
||||
@@ -17,8 +18,12 @@ class Members extends Renderer {
|
||||
. '<td><a href="editmember?id=' . $row['id'] . '">Bearbeiten</a> '
|
||||
. '<a href="payings?id=' . $row['id'] . '">Zahlungen</a></td>'
|
||||
. '</tr>';
|
||||
if ($row['status_text'] !== 'Mitgliedschaft bestätigt') {
|
||||
$activeMembers++;
|
||||
}
|
||||
}
|
||||
$tableBody .= '</tbody>';
|
||||
$this->content['memberlist'] = $tableBody;
|
||||
$this->content['numbermembers'] = $activeMembers;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -542,8 +542,6 @@ class Renderer {
|
||||
}
|
||||
|
||||
protected function getMemberList(bool $withId = false): array {
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
$query = <<<queryend
|
||||
SELECT c.id, c.first_name, c.last_name , c.street , c.zip , c.town, c.birthdate, c.phone, c.email, c.child_name,
|
||||
c.child_street, c.subscription, c.bank_name, c.iban, c.bic, c.account_member_name, c.membership_status, c.salt, c.membership_start,
|
||||
|
||||
Reference in New Issue
Block a user