Skip to content
Snippets Groups Projects
Commit d5d13f3d authored by Nicolas Borboën's avatar Nicolas Borboën
Browse files

[fix] PHP notice

parent 91083ca3
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<select name="job" class="custom-select" data-required> <select name="job" class="custom-select" data-required>
<option value="menu" selected disabled>Choisir une formation...</option> <option value="menu" selected disabled>Choisir une formation...</option>
<?php foreach ($DBController->getOpenPositions() as $position) { <?php foreach ($DBController->getOpenPositions() as $position) {
if ($_SESSION['postedForm']['job'] == $position['position_id']) { ?> if (isset($_SESSION['postedForm']['job']) && $_SESSION['postedForm']['job'] == $position['position_id']) { ?>
<option value='<?= $position['position_id'] ?>' selected='selected'><?= $position['job_full_value'] ?> (<?= $position['location_site'] ?>)</option> <option value='<?= $position['position_id'] ?>' selected='selected'><?= $position['job_full_value'] ?> (<?= $position['location_site'] ?>)</option>
<?php } else { ?> <?php } else { ?>
<option value='<?= $position['position_id'] ?>'><?= $position['job_full_value'] ?> (<?= $position['location_site'] ?>)</option> <option value='<?= $position['position_id'] ?>'><?= $position['job_full_value'] ?> (<?= $position['location_site'] ?>)</option>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment