From ada07fce0e2527dc79ccae6937717ecd8b9eb284 Mon Sep 17 00:00:00 2001 From: quix0r Date: Thu, 20 Jun 2013 20:54:21 +0000 Subject: [PATCH] MySQLi requires at least a link resource for all its functions/methods #2 --- inc/db/lib-mysqli.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/db/lib-mysqli.php b/inc/db/lib-mysqli.php index 02d0c8e5da..46b343fba0 100644 --- a/inc/db/lib-mysqli.php +++ b/inc/db/lib-mysqli.php @@ -341,7 +341,7 @@ function sqlEscapeString ($str, $secureString = TRUE, $strip = TRUE) { // Log SQL errors to debug.log in installation phase or call reportBug() function sqlError ($file, $line, $message) { // Remember plain error in last_sql_error - $GLOBALS['last_sql_error'] = mysqli_error(); + $GLOBALS['last_sql_error'] = mysqli_error(getSqlLink()); // Is login set? if (!empty($GLOBALS['mysql']['login'])) { -- 2.39.5