diff --git a/Blacklight/Releases.php b/Blacklight/Releases.php index 90b4a7281..321a07897 100755 --- a/Blacklight/Releases.php +++ b/Blacklight/Releases.php @@ -170,8 +170,8 @@ class Releases extends Release */ public function showPasswords(): ?string { - $setting = (int) Settings::settingValue('..showpasswordedrelease'); - $setting = $setting ?? 10; + $show = (int) Settings::settingValue('..showpasswordedrelease'); + $setting = $show ?? 10; switch ($setting) { case 0: // Hide releases with a password or a potential password (Hide unprocessed releases). diff --git a/Blacklight/processing/PostProcess.php b/Blacklight/processing/PostProcess.php index 53dcf670c..3a1980693 100755 --- a/Blacklight/processing/PostProcess.php +++ b/Blacklight/processing/PostProcess.php @@ -344,7 +344,7 @@ class PostProcess if ($filesAdded < 21 && ReleaseFile::query()->where(['releases_id' => $relID, 'name' => $file['name']])->first() === null) { // Try to add the files to the DB. - if (ReleaseFile::addReleaseFiles($relID, $file['name'], $file['hash_16K'], $file['size'], $query['postdate'] !== null ? Carbon::createFromFormat('Y-m-d H:i:s', $query['postdate']) : now(), 0)) { + if (ReleaseFile::addReleaseFiles($relID, $file['name'], $file['size'], $query['postdate'] !== null ? Carbon::createFromFormat('Y-m-d H:i:s', $query['postdate']) : now(), 0, $file['hash_16K'])) { $filesAdded++; } } diff --git a/Changelog b/Changelog index d1f63e6a9..cf4c7baff 100755 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +2019-08-16 DariusIII + * Fix: Fix bad order of variables in PostProcess class 2019-08-15 DariusIII * Chg: Add install_composer shell script to install latest version of composer 2019-08-14 DariusIII