X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fdb%2Flib-mysql3.php;h=f41591f0ee3dc6957f371a4a37701ef10817c6e0;hb=701f5ac005404813e0e546102b5821f2ba2af522;hp=b1104563e55f077ac00535ee7f4ec6f44e5d622f;hpb=3daede4c904e23905c3e48dd6749019deca0a0e0;p=mailer.git
diff --git a/inc/db/lib-mysql3.php b/inc/db/lib-mysql3.php
index b1104563e5..f41591f0ee 100644
--- a/inc/db/lib-mysql3.php
+++ b/inc/db/lib-mysql3.php
@@ -67,7 +67,7 @@ Query string:
incrementConfigEntry('sql_count');
// Debug output
- //* DEBUG: */ print "Query=
".$sql_string."
, affected=".SQL_AFFECTEDROWS().", numrows=".SQL_NUMROWS($result)."
\n";
+ //* DEBUG: */ print "Query=".$sql_string."
, affected=".SQL_AFFECTEDROWS().", numrows=".SQL_NUMROWS($result)."
\n";
if (($CSS != "1") && ($CSS != "-1") && (isBooleanConstantAndTrue('DEBUG_MODE')) && (isBooleanConstantAndTrue('DEBUG_SQL'))) {
//
@@ -226,13 +226,15 @@ function SQL_FREERESULT($result) {
function SQL_QUERY_ESC($qstring, $data, $file, $line, $run=true, $strip=true) {
global $link;
+ // Init variable
+ $query = "failed";
+
if ($strip) {
$strip = "true";
} else {
$strip = "false";
}
- $query = "";
$eval = "\$query = sprintf(\"".$qstring."\"";
foreach ($data as $var) {
if ((!empty($var)) || ($var === 0)) {
@@ -250,10 +252,10 @@ function SQL_QUERY_ESC($qstring, $data, $file, $line, $run=true, $strip=true) {
//* DEBUG: */ fclose($fp);
// Run the code
- @eval($eval);
+ eval($eval);
// Was the eval() command fine?
- if (empty($query)) {
+ if ($query == "failed") {
// Something went wrong?
print "eval=".htmlentities($eval)."";
debug_print_backtrace();