mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 02:27:34 -07:00
Fixed id sqllog table and name select db
This commit is contained in:
parent
c47fc2bd6f
commit
d671a783b5
1 changed files with 2 additions and 1 deletions
|
@ -111,6 +111,7 @@ class sql_db
|
|||
|
||||
$p = ((bool)$this->cfg['persist']) ? 'p:' : '';
|
||||
$this->link = mysqli_connect($p . $this->cfg['dbhost'], $this->cfg['dbuser'], $this->cfg['dbpasswd'], $this->cfg['dbname']);
|
||||
$this->selected_db = $this->cfg['dbname'];
|
||||
|
||||
if (mysqli_connect_error()) {
|
||||
$server = (DBG_USER) ? $this->cfg['dbhost'] : '';
|
||||
|
@ -869,7 +870,7 @@ class sql_db
|
|||
}
|
||||
|
||||
$id = $this->dbg_id - 1;
|
||||
$htid = 'expl-' . intval($this->link) . '-' . $id;
|
||||
$htid = 'expl-' . spl_object_hash($this->link) . '-' . $id;
|
||||
$dbg = $this->dbg[$id];
|
||||
|
||||
$this->explain_out .= '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue