From 07b9ed4275e5c3dde255db7db460b0644e7c8f28 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 24 Oct 2021 20:41:44 +0200 Subject: [PATCH] Setup/CLI * also fix empty --build param building all files * fixed copy/paste typo --- setup/tools/fileGen.class.php | 2 +- setup/tools/sqlGen.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/tools/fileGen.class.php b/setup/tools/fileGen.class.php index 03d87202..ed556e78 100644 --- a/setup/tools/fileGen.class.php +++ b/setup/tools/fileGen.class.php @@ -136,7 +136,7 @@ class FileGen $doScripts = array_unique($doScripts); return true; } - else if ($_ = CLISetup::getOpt('build')) + else if (is_array($_ = CLISetup::getOpt('build'))) { $doScripts = $_; return true; diff --git a/setup/tools/sqlGen.class.php b/setup/tools/sqlGen.class.php index af775673..5b30685d 100644 --- a/setup/tools/sqlGen.class.php +++ b/setup/tools/sqlGen.class.php @@ -56,7 +56,7 @@ class SqlGen if ($depsOK) { - if (isset(self::$tables[$ssRef->getName()])) + if (isset(self::$tables[$ts->getName()])) { CLI::write('a SetupScript named '.CLI::bold($ts->getName()).' was already registered. Skipping...', CLI::LOG_WARN); unset(self::$tmpStore[$idx]);