1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Don't rely on headers_sent

This commit is contained in:
Jakub Vrana
2010-11-25 10:40:16 +01:00
parent 87fa3d45d7
commit 8ce9ba616d
2 changed files with 2 additions and 1 deletions

View File

@@ -215,7 +215,7 @@ function get_rows($query, $connection2 = null, $error = "<p class='error'>") {
while ($row = $result->fetch_assoc()) {
$return[] = $row;
}
} elseif (!$result && $error && (headers_sent() || ob_get_level())) {
} elseif (!$result && $error && defined("PAGE_HEADER")) {
echo $error . error() . "\n";
}
return $return;