Skip to content

Commit 8a3eee6

Browse files
authored
Merge pull request #23 from themightysapien/patch-2
FIx for undefined index when no backup present
2 parents d3ac918 + 77e3f4a commit 8a3eee6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

resources/views/index.blade.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@
102102
@foreach($backups as $index => $backup)
103103
<tr data-toggle="collapse" data-target="#trace-{{$index+1}}" style="cursor: pointer;">
104104
<td>{{ $index+1 }}.</td>
105-
<td>{{ $backup[0] }}</td>
106-
<td>{{ $backup[1] }}</td>
107-
<td>{{ $backup[2] }}</td>
108-
<td>{{ $backup[3] }}</td>
109-
<td>{{ $backup['amount'] }}</td>
110-
<td>{{ $backup['newest'] }}</td>
111-
<td>{{ $backup['usedStorage'] }}</td>
105+
<td>{{ @$backup[0] }}</td>
106+
<td>{{ @$backup[1] }}</td>
107+
<td>{{ @$backup[2] }}</td>
108+
<td>{{ @$backup[3] }}</td>
109+
<td>{{ @$backup['amount'] }}</td>
110+
<td>{{ @$backup['newest'] }}</td>
111+
<td>{{ @$backup['usedStorage'] }}</td>
112112
</tr>
113113
<tr class="collapse" id="trace-{{$index+1}}">
114114
<td colspan="8">

0 commit comments

Comments
 (0)