Commit a1523222 authored by Nicolas Widart's avatar Nicolas Widart

Check for variables using isset

parent f83fe222
......@@ -34,7 +34,7 @@
</tr>
</thead>
<tbody>
<?php if ($roles->count() > 0): ?>
<?php if (isset($roles)): ?>
<?php foreach($roles as $role): ?>
<tr>
<td>
......@@ -73,7 +73,7 @@
</div>
</div>
<?php if ($roles->count() > 0): ?>
<?php if (isset($roles)): ?>
<?php foreach($roles as $role): ?>
<!-- Modal -->
<div class="modal fade" id="confirmation-{{ $role->id }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
......
......@@ -36,7 +36,7 @@
</tr>
</thead>
<tbody>
<?php if ($users->count() > 0): ?>
<?php if (isset($users)): ?>
<?php foreach($users as $user): ?>
<tr>
<td>
......@@ -89,7 +89,7 @@
</div>
</div>
<?php if ($users->count() > 0): ?>
<?php if (isset($users)): ?>
<?php foreach($users as $user): ?>
<!-- Modal -->
<div class="modal fade" id="confirmation-{{ $user->id }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment