Browse Source

Remove video with new file column `type`

kudlav 6 months ago
parent
commit
391e9a1eab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/model/VideoManager.php

+ 1 - 1
app/model/VideoManager.php

@@ -171,7 +171,7 @@ class VideoManager
 		$files = $this->database->table(FileManager::TABLE_VIDEO_FILE)
 			->select(FileManager::VIDEO_FILE_FILE .','. FileManager::TABLE_FILE .'.'. FileManager::FILE_TYPE)
 			->where(FileManager::VIDEO_FILE_VIDEO, $videoID)
-			->where(FileManager::FILE_TYPE .' = "thumbnail" OR '. FileManager::FILE_TYPE .' LIKE "video/%"')
+			->where(FileManager::TABLE_FILE .'.'. FileManager::FILE_TYPE .' = "thumbnail" OR '. FileManager::TABLE_FILE .'.'. FileManager::FILE_TYPE .' LIKE "video/%"')
 			->fetchPairs(null, FileManager::VIDEO_FILE_FILE)
 		;
 		$deleted = $this->database->table(FileManager::TABLE_FILE)