diff --git a/Blacklight/Releases.php b/Blacklight/Releases.php index 2b74190d0..29311a279 100755 --- a/Blacklight/Releases.php +++ b/Blacklight/Releases.php @@ -179,8 +179,8 @@ class Releases */ public static function showPasswords() { - $setting = Settings::settingValue('..showpasswordedrelease'); - $setting = ($setting !== null && is_numeric($setting)) ? $setting : 10; + $setting = (int) Settings::settingValue('..showpasswordedrelease'); + $setting = $setting ?? 10; switch ($setting) { case 0: // Hide releases with a password or a potential password (Hide unprocessed releases). diff --git a/Changelog b/Changelog index 202d1be5b..632e34eea 100755 --- a/Changelog +++ b/Changelog @@ -1,5 +1,6 @@ 2018-07-16 DariusIII - * CHg: Remove unused collectionCheck function from switch.php + * Chg: Update Releases passworded releases check for pages + * Chg: Remove unused collectionCheck function from switch.php * Chg: Update various scripts in misc folder * Chg: Update sphinx tables creation scripts * Chg: Update used libraries to latest versions