Skip to content
Snippets Groups Projects
Commit 6f284a22 authored by Matthieu Guffroy's avatar Matthieu Guffroy
Browse files

check excpetion

parent 700add68
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