Removed some bugs in Imlpementation of club's details

This commit is contained in:
2019-05-20 14:55:27 +02:00
parent 5ce47c288d
commit f4f59dcc81
3 changed files with 14 additions and 10 deletions

View File

@@ -54,10 +54,9 @@ defined('_JEXEC') or die;
<tr>
<td>Vorsitzende/r</td>
<td>
<!-- <input type='text' name='president' value='<?php echo htmlentities($this->object->getName()); ?>'> -->
<select name='president'>
<?php foreach($this->users as $u): ?>
<option value='<?php echo $u->getId(); ?>' <?php if ($this->object->getPresident()->getId() == $u->getId()) echo 'selected="selected"'; ?>>
<option value='<?php echo $u->getId(); ?>' <?php if ($this->object->getPresident() !== null && $this->object->getPresident()->getId() == $u->getId()) echo 'selected="selected"'; ?>>
<?php echo htmlentities("{$u->getName()}, {$u->getCity()}"); ?>
</option>
<?php endforeach; ?>