Fix table links for existing but invalid views

This commit is contained in:
Jakub Vrana 2013-05-13 10:12:13 -07:00
parent 65fae98558
commit 3ed0ce926c

View file

@ -4,7 +4,7 @@ $fields = fields($TABLE);
if (!$fields) {
$error = error();
}
$table_status = ($fields ? table_status($TABLE, true) : array());
$table_status = table_status($TABLE, true);
page_header(($fields && is_view($table_status) ? lang('View') : lang('Table')) . ": " . h($TABLE), $error);