From: Roland Häder Date: Thu, 20 Jun 2013 20:54:21 +0000 (+0000) Subject: MySQLi requires at least a link resource for all its functions/methods #2 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=06a800dee3bcc41b20a69552542e3f203a23daf6;p=mailer.git MySQLi requires at least a link resource for all its functions/methods #2 --- 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'])) {