'details' => 'MySQL thread_stack is OK',
);
- $conn = @mysqli_connect($db_config['server'], $db_config['username'], $db_config['password']);
+ $host = isset($db_config['server']) ? $db_config['server'] : $db_config['host'];
+ $conn = @mysqli_connect($host, $db_config['username'], $db_config['password']);
if (!$conn) {
$results['severity'] = $this::REQUIREMENT_ERROR;
$results['details'] = 'Could not connect to database';
'details' => 'Can successfully lock and unlock tables',
);
- $conn = @mysqli_connect($db_config['server'], $db_config['username'], $db_config['password']);
+ $host = isset($db_config['server']) ? $db_config['server'] : $db_config['host'];
+ $conn = @mysqli_connect($host, $db_config['username'], $db_config['password']);
if (!$conn) {
$results['severity'] = $this::REQUIREMENT_ERROR;
$results['details'] = 'Could not connect to database';