Skip to content

Commit

Permalink
Merge pull request #23 from themightysapien/patch-2
Browse files Browse the repository at this point in the history
FIx for undefined index when no backup present
  • Loading branch information
z-song authored Sep 11, 2020
2 parents d3ac918 + 77e3f4a commit 8a3eee6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions resources/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@
@foreach($backups as $index => $backup)
<tr data-toggle="collapse" data-target="#trace-{{$index+1}}" style="cursor: pointer;">
<td>{{ $index+1 }}.</td>
<td>{{ $backup[0] }}</td>
<td>{{ $backup[1] }}</td>
<td>{{ $backup[2] }}</td>
<td>{{ $backup[3] }}</td>
<td>{{ $backup['amount'] }}</td>
<td>{{ $backup['newest'] }}</td>
<td>{{ $backup['usedStorage'] }}</td>
<td>{{ @$backup[0] }}</td>
<td>{{ @$backup[1] }}</td>
<td>{{ @$backup[2] }}</td>
<td>{{ @$backup[3] }}</td>
<td>{{ @$backup['amount'] }}</td>
<td>{{ @$backup['newest'] }}</td>
<td>{{ @$backup['usedStorage'] }}</td>
</tr>
<tr class="collapse" id="trace-{{$index+1}}">
<td colspan="8">
Expand Down

0 comments on commit 8a3eee6

Please sign in to comment.