projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
082398d
)
MySQLi requires at least a link resource for all its functions/methods #2
author
Roland Häder
<roland@mxchange.org>
Thu, 20 Jun 2013 20:54:21 +0000
(20:54 +0000)
committer
Roland Häder
<roland@mxchange.org>
Thu, 20 Jun 2013 20:54:21 +0000
(20:54 +0000)
inc/db/lib-mysqli.php
patch
|
blob
|
history
diff --git
a/inc/db/lib-mysqli.php
b/inc/db/lib-mysqli.php
index 02d0c8e5da12fbe5aaf47debb4f22bc48ab8ef66..46b343fba0b13fe59bdbcb48a36dfaac246a0000 100644
(file)
--- 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
// 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'])) {
// Is login set?
if (!empty($GLOBALS['mysql']['login'])) {