Skip to content

Commit

Permalink
Merge 71db244 into 95ac6cc
Browse files Browse the repository at this point in the history
  • Loading branch information
austinhyde committed Jan 16, 2016
2 parents 95ac6cc + 71db244 commit eda9f9e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/DBSteward/dbsteward.php
Expand Up @@ -348,9 +348,14 @@ public function arg_parse() {
&& strlen($options["dbuser"]) > 0) {
$dbuser = $options["dbuser"];
}
if (isset($options['dbpassword'])
&& strlen($options['dbpassword']) > 0) {
$this->cli_dbpassword = $options['dbpassword'];
if (isset($options['dbpassword'])) {
if ($options['dbpassword'] === false) {
// treat --dbpassword as the empty password, because
// --dbpassword='' doesn't show up in $options
$this->cli_dbpassword = '';
} else {
$this->cli_dbpassword = $options['dbpassword'];
}
}

///// SQL DDL DML DCL output flags
Expand Down

0 comments on commit eda9f9e

Please sign in to comment.