Remove some deprecated functions

This commit is contained in:
Tony Murray
2016-04-24 01:05:14 -05:00
parent 413d0b7c5e
commit b98ba8c1a4
7 changed files with 14 additions and 16 deletions

View File

@@ -416,7 +416,7 @@ class ircbot {
private function chkdb() {
if (!is_resource($this->sql)) {
if (($this->sql = mysql_connect($this->config['db_host'], $this->config['db_user'], $this->config['db_pass'])) != false && mysql_select_db($this->config['db_name'])) {
if (($this->sql = mysqli_connect($this->config['db_host'], $this->config['db_user'], $this->config['db_pass'])) != false && mysqli_select_db($this->sql, $this->config['db_name'])) {
return true;
}
else {