noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 05/13: Fix bug in todo list, add an empty tab


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 05/13: Fix bug in todo list, add an empty table if nothing
Date: Sun, 07 Jun 2015 17:57:21 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 97da26bd0aaaeca4fc9c66603497eea2a5cd7d5f
Author: Dany De Bontridder <address@hidden>
Date:   Fri Jun 5 12:47:20 2015 +0200

    Fix bug in todo list, add an empty table if nothing
---
 include/template/dashboard.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/template/dashboard.php b/include/template/dashboard.php
index 571ab7e..3b05b09 100644
--- a/include/template/dashboard.php
+++ b/include/template/dashboard.php
@@ -19,9 +19,9 @@ $array=$todo->load_all();
 $a_todo=Todo_List::to_object($cn,$array);
 
 echo HtmlInput::button('add',_('Ajout'),'onClick="add_todo()"','smallbutton');
-if ( ! empty ($array) )  {
   echo '<table id="table_todo" class="sortable" width="100%">';
   echo '<tr><th class=" sorttable_sorted_reverse" id="todo_list_date">Date 
<span 
id="sorttable_sortrevind">&nbsp;&blacktriangle;</span></th><th>Titre</th><th></th>';
+if ( ! empty ($array) )  {
   $nb=0;
   $today=date('d.m.Y');
 
@@ -30,8 +30,8 @@ if ( ! empty ($array) )  {
     $nb++;
     echo $row->display_row($odd);
   }
-  echo '</table>';
 }
+  echo '</table>';
 ?>
 </div>
 



reply via email to

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