diff --git a/include/db/pdo-postgres.inc.php b/include/db/pdo-postgres.inc.php
index c413fbc0..5e735629 100644
--- a/include/db/pdo-postgres.inc.php
+++ b/include/db/pdo-postgres.inc.php
@@ -216,12 +216,12 @@ function &serendipity_db_query($sql, $single = false, $result_type = "both", $re
if (!$serendipity['dbSth']) {
if (!$expectError && !$serendipity['production']) {
- print "Error in $sql
\n";
+ print "Error in $sql";
print $serendipity['dbConn']->errorInfo() . "
\n";
if (function_exists('debug_backtrace')) {
highlight_string(var_export(debug_backtrace(), 1));
}
- print "$sql
\n";
+ print "
$sql\n"; } return $type_map['false']; } diff --git a/include/db/pdo-sqlite.inc.php b/include/db/pdo-sqlite.inc.php index 3b6c860a..f8865332 100644 --- a/include/db/pdo-sqlite.inc.php +++ b/include/db/pdo-sqlite.inc.php @@ -234,12 +234,12 @@ function &serendipity_db_query($sql, $single = false, $result_type = "both", $re if (!$serendipity['dbSth']) { if (!$expectError && !$serendipity['production']) { - print "Error in $sql
$sql
\n";
+ print "$sql"; } return $type_map['false']; } diff --git a/include/db/postgres.inc.php b/include/db/postgres.inc.php index da922706..f15e4062 100644 --- a/include/db/postgres.inc.php +++ b/include/db/postgres.inc.php @@ -226,12 +226,12 @@ function &serendipity_db_query($sql, $single = false, $result_type = "both", $re if (!$serendipity['dbLastResult']) { if (!$expectError && !$serendipity['production']) { - print "Error in $sql
$sql
\n";
+ print "$sql"; } return $type_map['false']; } diff --git a/serendipity_admin.php b/serendipity_admin.php index 12a8926c..b8bf4e99 100644 --- a/serendipity_admin.php +++ b/serendipity_admin.php @@ -408,7 +408,6 @@ if ($use_installer) { -