Fix table editor : edit entry with id = 0 doesn't mean add a new entry
[platal.git] / templates / table-editor.tpl
index 0bd0a41..9f51e94 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2009 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
   <table class="bicol">
     <tr class="impair">
       <th colspan="2">
-        {if $id}
+        {if $id !== null}
             modification de l'entrée 
         {else}
             nouvelle entrée