Commit a1523222 authored by Nicolas Widart's avatar Nicolas Widart

Check for variables using isset

parent f83fe222
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php if ($roles->count() > 0): ?> <?php if (isset($roles)): ?>
<?php foreach($roles as $role): ?> <?php foreach($roles as $role): ?>
<tr> <tr>
<td> <td>
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
</div> </div>
</div> </div>
<?php if ($roles->count() > 0): ?> <?php if (isset($roles)): ?>
<?php foreach($roles as $role): ?> <?php foreach($roles as $role): ?>
<!-- Modal --> <!-- Modal -->
<div class="modal fade" id="confirmation-{{ $role->id }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal fade" id="confirmation-{{ $role->id }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php if ($users->count() > 0): ?> <?php if (isset($users)): ?>
<?php foreach($users as $user): ?> <?php foreach($users as $user): ?>
<tr> <tr>
<td> <td>
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
</div> </div>
</div> </div>
<?php if ($users->count() > 0): ?> <?php if (isset($users)): ?>
<?php foreach($users as $user): ?> <?php foreach($users as $user): ?>
<!-- Modal --> <!-- Modal -->
<div class="modal fade" id="confirmation-{{ $user->id }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <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