Skip to content

Commit 77e3f4a

Browse files
FIx for undefined index when no backup present
Simple fix to suppress undefined index error which you get when there is not a single backup present in the disk.
1 parent d3ac918 commit 77e3f4a

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)