Empty log list

This commit is contained in:
Alan Garcia 2012-08-24 10:01:16 +00:00
parent 15bfffed0b
commit 6135205dc1
1 changed files with 3 additions and 1 deletions

View File

@ -39,8 +39,10 @@ $list=$log->list_logs_directory_all($log->get_logs_directory());
if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>";
}
if(!$list || empty($list)){
if(!$list || empty($list['dir'])){
echo "<p class=\"error\">"._("You have no sql logs to list a the moment.")."</p>";
include_once('foot.php');
exit;
}
?>
<table class="tlist">