noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 37/46: Manage_Table show header even if table


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 37/46: Manage_Table show header even if table empty
Date: Tue, 13 Jul 2021 05:02:01 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 7845ebb136d5aa5c81323251a9c006b226d22508
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu Jun 24 14:26:46 2021 +0200

    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 1286ee1..73f7a8a 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('<table class="result sortable" id="tb%s">', 
$this->object_name);
         }
+        $this->display_table_header();
+        echo '<tbody>';
         for ($i=0; $i<$nb; $i++)
         {
-            if ($i==0)
-            {
-                $this->display_table_header();
-                echo '<tbody>';
-            }
             $row=Database::fetch_array($ret, $i);
             $this->display_row($row);
         }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]