Corrected bad check for database config
This commit is contained in:
parent
08f540057f
commit
98e88faef8
@ -5,7 +5,7 @@
|
|||||||
private $statement;
|
private $statement;
|
||||||
|
|
||||||
public function __construct ( $config ) {
|
public function __construct ( $config ) {
|
||||||
if ( $config && $config [ 'host' ] && $config [ 'username' ] && $config [ 'password' ] && $config [ 'name' ] && $config [ 'port' ] ) {
|
if ( isset ( $config ) && isset ( $config [ 'host' ] ) && isset ( $config [ 'username' ] ) && isset ( $config [ 'password' ] ) && isset ( $config [ 'name' ] ) && isset ( $config [ 'port' ] ) ) {
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user