From 7fefe84b2eba1db91d0f3a80580705e0ed591014 Mon Sep 17 00:00:00 2001 From: cweiske Date: Tue, 14 Sep 2010 19:20:31 +0000 Subject: allow debugging of connection errors git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@734 b3834d28-1941-0410-a4f8-b48e95affb8f --- src/SemanticScuttle/db/mysqli.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/SemanticScuttle/db/mysqli.php') diff --git a/src/SemanticScuttle/db/mysqli.php b/src/SemanticScuttle/db/mysqli.php index 03b36ea..9a2709a 100644 --- a/src/SemanticScuttle/db/mysqli.php +++ b/src/SemanticScuttle/db/mysqli.php @@ -50,7 +50,7 @@ class sql_db } } - return $this->sql_error(''); + return $this->sql_error(mysqli_connect_error()); } // -- cgit v1.2.3