Skip to content

A self-hosted media server and file management system

Fix array index error

aminnausind15ea6b68709
diff --git a/app/Jobs/IndexFiles.php b/app/Jobs/IndexFiles.php
index 3f8e15ea..49154e1e 100644
--- a/app/Jobs/IndexFiles.php
+++ b/app/Jobs/IndexFiles.php
@@ -100,9 +100,8 @@ class IndexFiles implements ShouldQueue, ShouldBeUnique
array_push($categoryDeletions, $changeID);
}
}
-
foreach ($folders as $folderChange){ // for each in stored, remove from new (delete)
- $changeID = $folderChange['id'];
+ $changeID = $folderChange['id']['id'];
$changeName = $folderChange["name"];
$changePath = $folderChange["path"];
$changeCategoryID = $folderChange["category_id"];