diff --git a/Blacklight/NameFixer.php b/Blacklight/NameFixer.php index 619122c57..913f4287d 100755 --- a/Blacklight/NameFixer.php +++ b/Blacklight/NameFixer.php @@ -1136,7 +1136,7 @@ class NameFixer { $n = PHP_EOL; - $show = (isset($args[2]) && $args[2] === 'show') ? 1 : 0; + $show = isset($args[2]) && $args[2] === 'show'; if (isset($args[1]) && is_numeric($args[1])) { $limit = 'LIMIT '.$args[1]; @@ -1199,7 +1199,7 @@ class NameFixer * @param $release * @param bool $echo * @param int $nameStatus - * @param int $show + * @param bool $show * * @return int * @throws \Exception diff --git a/Changelog b/Changelog index 022d0fd66..d69fd07cf 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-10-15 DariusIII + * Chg: Make $show variable in matchPreDbFiles function a boolean * Chg: Slightly improve matchPredbFiles speed * Chg: Use raw query in matchPredbFiles query * Chg: Simplify matchPredbFiles function query