Skip to content
Snippets Groups Projects
Commit 48ebfcdf authored by NF17 Etudiant's avatar NF17 Etudiant
Browse files

Merge branch 'master' of gitlab.utc.fr:nf17-camp-p14/clivi

parents 2bd9d059 f30236a6
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,15 @@
<div class="page-header">
<h1><?php echo $list->getTitle(); ?></h1>
</div>
<?php try { ?>
<?php
$ok = true;
try {
$list->getLabels();
} catch (Exception $e) {
echo $e->getMessage();
$ok = false;
} ?>
<?php if($ok) { ?>
<table class="table">
<thead>
<?php foreach($list->getLabels() as $field): ?>
......@@ -22,7 +30,5 @@
<?php endforeach; ?>
</tbody>
</table>
<?php } catch (Exception $e) {
//echo $e->getMessage();
} ?>
<?php } ?>
</div>
\ No newline at end of file
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