From 14fb3893280168000605785c5352955d5579ee5e Mon Sep 17 00:00:00 2001
From: Urban Müller
Date: Mon, 29 Apr 2013 14:06:33 +0000
Subject: correctly handle conntect errs

---
 it_dbi.class | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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']);
 		}
-- 
cgit v1.2.3