Make $show variable in matchPreDbFiles function a boolean

This commit is contained in:
DariusIII
2018-10-15 15:25:00 +02:00
parent 05329c5db2
commit 2e66465ffb
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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
+1
View File
@@ -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