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
Branches
No related tags found
No related merge requests found
...@@ -3,7 +3,15 @@ ...@@ -3,7 +3,15 @@
<div class="page-header"> <div class="page-header">
<h1><?php echo $list->getTitle(); ?></h1> <h1><?php echo $list->getTitle(); ?></h1>
</div> </div>
<?php try { ?> <?php
$ok = true;
try {
$list->getLabels();
} catch (Exception $e) {
echo $e->getMessage();
$ok = false;
} ?>
<?php if($ok) { ?>
<table class="table"> <table class="table">
<thead> <thead>
<?php foreach($list->getLabels() as $field): ?> <?php foreach($list->getLabels() as $field): ?>
...@@ -22,7 +30,5 @@ ...@@ -22,7 +30,5 @@
<?php endforeach; ?> <?php endforeach; ?>
</tbody> </tbody>
</table> </table>
<?php } catch (Exception $e) { <?php } ?>
//echo $e->getMessage();
} ?>
</div> </div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment