From 2e66465ffbb1f361bf9aba12396efceabf2bd278 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Mon, 15 Oct 2018 15:25:00 +0200 Subject: [PATCH] Make $show variable in matchPreDbFiles function a boolean --- Blacklight/NameFixer.php | 4 ++-- Changelog | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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