Fix php aowow --sql not doing anything (#307)

This commit is contained in:
Giacomo Pozzoni 2021-10-24 20:40:50 +02:00 committed by GitHub
parent 7c293c405f
commit cb2274bbab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,7 +160,7 @@ class SqlGen
$doTbls = array_unique($doTbls);
return true;
}
else if ($_ = CLISetup::getOpt('sql'))
else if (is_array($_ = CLISetup::getOpt('sql')))
{
$doTbls = $_;
return true;