From b6f3a5a28341882b73b3c10c69e5d8189b4f998f Mon Sep 17 00:00:00 2001 From: abdelqader osama aldweik Date: Sat, 7 Nov 2020 03:35:11 +0200 Subject: [PATCH 1/2] remove error tags in disk name, when the backup is not healthy. --- src/Backup.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Backup.php b/src/Backup.php index 9f7f90a..0d114c1 100644 --- a/src/Backup.php +++ b/src/Backup.php @@ -25,7 +25,8 @@ public function getExists() $files = array_map('basename', $status->backupDestination()->disk()->allFiles($name)); - $rows[$index]['files'] = array_slice(array_reverse($files), 0, 30); + $rows[$index]['disk'] = strip_tags($rows[$index]['disk']); + $rows[$index]['files'] = array_slice(array_reverse($files), 0, 30); } return $rows; From 1db770a964ab5a00b656d30777e0b2fb68fa4813 Mon Sep 17 00:00:00 2001 From: abdelqader osama aldweik Date: Sat, 7 Nov 2020 03:38:06 +0200 Subject: [PATCH 2/2] remove error tags in disk name, when the backup is not healthy. --- src/Backup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Backup.php b/src/Backup.php index 0d114c1..a77412f 100644 --- a/src/Backup.php +++ b/src/Backup.php @@ -26,7 +26,7 @@ public function getExists() $files = array_map('basename', $status->backupDestination()->disk()->allFiles($name)); $rows[$index]['disk'] = strip_tags($rows[$index]['disk']); - $rows[$index]['files'] = array_slice(array_reverse($files), 0, 30); + $rows[$index]['files'] = array_slice(array_reverse($files), 0, 30); } return $rows;