More redundant br elements fixed.

This commit is contained in:
Matthias Mees 2012-12-03 15:39:31 +01:00
parent 7288ffdef8
commit 87a68af4c3
3 changed files with 6 additions and 6 deletions

View File

@ -216,12 +216,12 @@ function &serendipity_db_query($sql, $single = false, $result_type = "both", $re
if (!$serendipity['dbSth']) { if (!$serendipity['dbSth']) {
if (!$expectError && !$serendipity['production']) { if (!$expectError && !$serendipity['production']) {
print "Error in $sql<br/>\n"; print "<span class='msg_error'>Error in $sql</span>";
print $serendipity['dbConn']->errorInfo() . "<BR/>\n"; print $serendipity['dbConn']->errorInfo() . "<BR/>\n";
if (function_exists('debug_backtrace')) { if (function_exists('debug_backtrace')) {
highlight_string(var_export(debug_backtrace(), 1)); highlight_string(var_export(debug_backtrace(), 1));
} }
print "<br><code>$sql</code>\n"; print "<pre>$sql</pre>\n";
} }
return $type_map['false']; return $type_map['false'];
} }

View File

@ -234,12 +234,12 @@ function &serendipity_db_query($sql, $single = false, $result_type = "both", $re
if (!$serendipity['dbSth']) { if (!$serendipity['dbSth']) {
if (!$expectError && !$serendipity['production']) { if (!$expectError && !$serendipity['production']) {
print "Error in $sql<br/>\n"; print "<span class='msg_error'>Error in $sql</span>";
print $serendipity['dbConn']->errorInfo() . "<BR/>\n"; print $serendipity['dbConn']->errorInfo() . "<BR/>\n";
if (function_exists('debug_backtrace')) { if (function_exists('debug_backtrace')) {
highlight_string(var_export(debug_backtrace(), 1)); highlight_string(var_export(debug_backtrace(), 1));
} }
print "<br><code>$sql</code>\n"; print "<pre>$sql</pre>";
} }
return $type_map['false']; return $type_map['false'];
} }

View File

@ -226,12 +226,12 @@ function &serendipity_db_query($sql, $single = false, $result_type = "both", $re
if (!$serendipity['dbLastResult']) { if (!$serendipity['dbLastResult']) {
if (!$expectError && !$serendipity['production']) { if (!$expectError && !$serendipity['production']) {
print "Error in $sql<br/>\n"; print "<span class='msg_error'>Error in $sql</span>";
print pg_last_error($serendipity['dbConn']) . "<BR/>\n"; print pg_last_error($serendipity['dbConn']) . "<BR/>\n";
if (function_exists('debug_backtrace')) { if (function_exists('debug_backtrace')) {
highlight_string(var_export(debug_backtrace(), 1)); highlight_string(var_export(debug_backtrace(), 1));
} }
print "<br><code>$sql</code>\n"; print "<pre>$sql</pre>";
} }
return $type_map['false']; return $type_map['false'];
} }