Fix undefined index crc32 when adding data from rar

This commit is contained in:
DariusIII
2018-11-30 13:59:10 +01:00
parent 81f577ad93
commit c1d6d30b5a
2 changed files with 2 additions and 1 deletions
@@ -1211,7 +1211,7 @@ class ProcessAdditional
*/
if ($this->_addedFileInfo < 11 && ReleaseFile::query()->where(['releases_id' => $this->_release->id, 'name' => $file['name'], 'size' => $file
['size'], ])->first() === null) {
if (ReleaseFile::addReleaseFiles($this->_release->id, $file['name'], $file['size'], $file['date'], $file['pass'], '', $file['crc32'])) {
if (ReleaseFile::addReleaseFiles($this->_release->id, $file['name'], $file['size'], $file['date'], $file['pass'], '', $file['crc32'] ?? '')) {
$this->_addedFileInfo++;
if ($this->_echoCLI) {
+1
View File
@@ -1,4 +1,5 @@
2018-11-30 DariusIII
* Fix: Fix undefined index crc32 when adding data from rar
* Chg: Update more symfony components
* Chg: Move column status updates to inside function checks
* Chg: Use true switch in place of numerical 1 in NameFixer functions used in groupFixRelNames.php