update
This commit is contained in:
parent
73f2ac6f61
commit
c2b48eb7a3
@ -96,13 +96,13 @@ function &serendipity_db_query($sql, $single = false, $result_type = "both", $re
|
||||
}
|
||||
|
||||
if (!$expectError && mysql_error($serendipity['dbConn']) != '') {
|
||||
$msg = '<pre>' . $sql . '</pre> / ' . htmlspecialchars(mysql_error($serendipity['dbConn']));
|
||||
$msg = '<pre>' . htmlspecialchars($sql) . '</pre> / ' . htmlspecialchars(mysql_error($serendipity['dbConn']));
|
||||
return $msg;
|
||||
}
|
||||
|
||||
if (!$c) {
|
||||
if (!$expectError && !$serendipity['production']) {
|
||||
print '<pre>' . $sql . '</pre> / ' . htmlspecialchars(mysql_error($serendipity['dbConn']));
|
||||
print '<pre>' . htmlspecialchars($sql) . '</pre> / ' . htmlspecialchars(mysql_error($serendipity['dbConn']));
|
||||
if (function_exists('debug_backtrace') && $reportErr == true) {
|
||||
highlight_string(var_export(debug_backtrace(), 1));
|
||||
}
|
||||
|
@ -161,13 +161,13 @@ function &serendipity_db_query($sql, $single = false, $result_type = "both", $re
|
||||
}
|
||||
|
||||
if (!$expectError && sqlrcur_errorMessage($cur) != '') {
|
||||
$msg = '<pre>' . $sql . '</pre> / ' . sqlrcur_errorMessage($cur);
|
||||
$msg = '<pre>' . htmlspecialchars($sql) . '</pre> / ' . htmlspecialchars(sqlrcur_errorMessage($cur));
|
||||
return $msg;
|
||||
}
|
||||
|
||||
if (!$c) {
|
||||
if (!$expectError && !$serendipity['production']) {
|
||||
print '<pre>' . $sql . '</pre> / ' . sqlrcur_errorMessage($cur);
|
||||
print '<pre>' . htmlspecialchars($sql) . '</pre> / ' . htmlspecialchars(sqlrcur_errorMessage($cur));
|
||||
if (function_exists('debug_backtrace') && $reportErr == true) {
|
||||
highlight_string(var_export(debug_backtrace(), 1));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user