Small additional fixes to reset_postprocessing.php script

This commit is contained in:
DariusIII
2018-11-16 14:48:51 +01:00
parent fd556fa75a
commit 185176ad3c
2 changed files with 7 additions and 6 deletions
+1
View File
@@ -1,4 +1,5 @@
2018-11-16 DariusIII
* Chg: Small additional fixes to reset_postprocessing.php script
* Chg: Update reset_postprocessing.php script
* Chg: Update barryvdh/laravel-debugbar, orchestra/testbench-core and orchestra/testbench to their latest versions
2018-11-15 DariusIII
+6 -6
View File
@@ -66,7 +66,7 @@ if (isset($argv[1]) && ($argv[1] === 'consoles' || $argv[1] === 'all')) {
}
$qry = DB::select('SELECT id FROM releases'.$where);
if ($qry !== false) {
if (! empty($qry)) {
$total = \count($qry);
} else {
$total = 0;
@@ -94,7 +94,7 @@ if (isset($argv[1]) && ($argv[1] === 'games' || $argv[1] === 'all')) {
$qry = DB::select('SELECT id FROM releases'.$where);
$total = 0;
if ($qry !== false) {
if (! empty($qry)) {
$total = \count($qry);
}
@@ -119,7 +119,7 @@ if (isset($argv[1]) && ($argv[1] === 'movies' || $argv[1] === 'all')) {
}
$qry = DB::select('SELECT id FROM releases'.$where);
if ($qry !== false) {
if (! empty($qry)) {
$total = \count($qry);
} else {
$total = 0;
@@ -167,7 +167,7 @@ if (isset($argv[1]) && ($argv[1] === 'misc' || $argv[1] === 'all')) {
$colorCli->primary('SELECT id FROM releases'.$where);
$qry = DB::select('SELECT id FROM releases'.$where);
if ($qry !== false) {
if (! empty($qry)) {
$total = \count($qry);
} else {
$total = 0;
@@ -195,7 +195,7 @@ if (isset($argv[1]) && ($argv[1] === 'tv' || $argv[1] === 'all')) {
}
$qry = DB::select('SELECT id FROM releases'.$where);
if ($qry !== false) {
if (! empty($qry)) {
$total = \count($qry);
} else {
$total = 0;
@@ -222,7 +222,7 @@ if (isset($argv[1]) && ($argv[1] === 'anime' || $argv[1] === 'all')) {
}
$qry = DB::select('SELECT id FROM releases'.$where);
if ($qry !== false) {
if (! empty($qry)) {
$total = \count($qry);
} else {
$total = 0;