From 7845ebb136d5aa5c81323251a9c006b226d22508 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 24 Jun 2021 14:26:46 +0200 Subject: [PATCH] Manage_Table show header even if table empty --- include/lib/manage_table_sql.class.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/lib/manage_table_sql.class.php b/include/lib/manage_table_sql.class.php index 1286ee114..73f7a8a21 100644 --- a/include/lib/manage_table_sql.class.php +++ b/include/lib/manage_table_sql.class.php @@ -831,13 +831,10 @@ function check() } else { printf('', $this->object_name); } + $this->display_table_header(); + echo ''; for ($i=0; $i<$nb; $i++) { - if ($i==0) - { - $this->display_table_header(); - echo ''; - } $row=Database::fetch_array($ret, $i); $this->display_row($row); }