Skip to content

Commit

Permalink
Hide empty breadcrumb
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Mar 15, 2011
1 parent 8e5d9d0 commit f60058a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions adminer/include/design.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
<div id="content">
<?php
}
echo '<p id="breadcrumb">';
if (isset($breadcrumb)) {
$link = substr(preg_replace('~(username|db|ns)=[^&]*&~', '', ME), 0, -1);
echo '<a href="' . ($link ? h($link) : ".") . '">' . $drivers[DRIVER] . '</a> &raquo; ';
echo '<p id="breadcrumb"><a href="' . ($link ? h($link) : ".") . '">' . $drivers[DRIVER] . '</a> &raquo; ';
$link = substr(preg_replace('~(db|ns)=[^&]*&~', '', ME), 0, -1);
$server = (SERVER != "" ? h(SERVER) : lang('Server'));
if ($breadcrumb === false) {
Expand Down

0 comments on commit f60058a

Please sign in to comment.