Address code review feedback: improve error handling and clean up no-op function signature
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/209fe796-9a38-47c1-a6b7-992ce11d038b Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
c0bd0a0bb5
commit
f94f830cbb
3 changed files with 4 additions and 4 deletions
|
|
@ -45,7 +45,7 @@ class MySQLModuleDatabase extends OGPDatabaseMySQL
|
|||
|
||||
$this->link = mysqli_connect($db_host, $db_user, $db_pass, $db_name);
|
||||
|
||||
if ( $this->link === FALSE )
|
||||
if ( $this->link === FALSE || mysqli_connect_errno() )
|
||||
return -11;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue