Fixes formatting
parent
69ff44c4a2
commit
308c92af2c
|
@ -98,7 +98,7 @@ if (isset($conference_id)) {
|
||||||
echo "\t\t<tr>";
|
echo "\t\t<tr>";
|
||||||
// sometimes $column is empty, we make it '' then
|
// sometimes $column is empty, we make it '' then
|
||||||
foreach ($row as $key => $column) {
|
foreach ($row as $key => $column) {
|
||||||
if ($column === $conference_id) {
|
if ($key === 'conference ID' && $column === $conference_id) {
|
||||||
echo "\t\t\t<td><strong>" . htmlspecialchars($column ?? '') . "</strong></td>";
|
echo "\t\t\t<td><strong>" . htmlspecialchars($column ?? '') . "</strong></td>";
|
||||||
} elseif ($key === 'conference name') {
|
} elseif ($key === 'conference name') {
|
||||||
echo "\t\t\t<td><a href=\"$app_root?page=conferences&name=" . htmlspecialchars($column ?? '') . "\">" . htmlspecialchars($column ?? '') . "</a></td>";
|
echo "\t\t\t<td><a href=\"$app_root?page=conferences&name=" . htmlspecialchars($column ?? '') . "\">" . htmlspecialchars($column ?? '') . "</a></td>";
|
||||||
|
@ -175,7 +175,7 @@ if (isset($conference_id)) {
|
||||||
echo "\t\t<tr>";
|
echo "\t\t<tr>";
|
||||||
// sometimes $column is empty, we make it '' then
|
// sometimes $column is empty, we make it '' then
|
||||||
foreach ($row as $key => $column) {
|
foreach ($row as $key => $column) {
|
||||||
if ($column === $conference_name) {
|
if ($key === 'conference name' && $column === $conference_name) {
|
||||||
echo "\t\t\t<td><strong>" . htmlspecialchars($column ?? '') . "</strong></td>";
|
echo "\t\t\t<td><strong>" . htmlspecialchars($column ?? '') . "</strong></td>";
|
||||||
} elseif ($key === 'conference ID') {
|
} elseif ($key === 'conference ID') {
|
||||||
echo "\t\t\t<td><a href=\"$app_root?page=conferences&id=" . htmlspecialchars($column ?? '') . "\">" . htmlspecialchars($column ?? '') . "</a></td>";
|
echo "\t\t\t<td><a href=\"$app_root?page=conferences&id=" . htmlspecialchars($column ?? '') . "\">" . htmlspecialchars($column ?? '') . "</a></td>";
|
||||||
|
|
Loading…
Reference in New Issue