Make Browse and Search always active for views in db structure view

This commit is contained in:
Piotr Przybylski 2011-05-07 22:15:54 +02:00
parent 423b45f6b2
commit 7ac599da26

View File

@ -255,7 +255,7 @@ foreach ($tables as $keyname => $each_table) {
$hidden_fields[] = '<input type="hidden" name="views[]" value="' . htmlspecialchars($each_table['TABLE_NAME']) . '" />';
}
if ($each_table['TABLE_ROWS'] > 0) {
if ($each_table['TABLE_ROWS'] > 0 || $table_is_view) {
$browse_table = '<a href="sql.php?' . $tbl_url_query . '&amp;pos=0">' . $titles['Browse'] . '</a>';
$search_table = '<a href="tbl_select.php?' . $tbl_url_query . '">' . $titles['Search'] . '</a>';
$browse_table_label = '<a href="sql.php?' . $tbl_url_query . '&amp;pos=0">' . $truename . '</a>';