summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
authorUrban Müller2013-04-29 14:06:33 +0000
committerUrban Müller2013-04-29 14:06:33 +0000
commit14fb3893280168000605785c5352955d5579ee5e (patch)
tree458175dfb83aa10d4eeee4a281c7a7e65bb4a3fc /it_dbi.class
parent4164f9c2956a76f1335f7413e02e2f8cb870a960 (diff)
downloaditools-14fb3893280168000605785c5352955d5579ee5e.tar.gz
itools-14fb3893280168000605785c5352955d5579ee5e.tar.bz2
itools-14fb3893280168000605785c5352955d5579ee5e.zip
correctly handle conntect errs
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class
index b2f3717..ef193c9 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -214,7 +214,7 @@ function _connect($p = array())
if (!$this->_link)
{
# One retry after a short delay
- it::log('sqllog', "it_dbi(): retrying DB link (mysqli_connect {$p['server']}, {$p['db']}): " . mysqli_error());
+ it::log('sqllog', "it_dbi(): retrying DB link (mysqli_connect {$p['server']}, {$p['db']}): " . mysqli_connect_error());
sleep(1);
$this->_link = @mysqli_connect($p['server'], $p['user'], $p['pw']);
}