Author: benj
Date: Thu Jun 16 17:38:00 2016
New Revision: 1716

URL: http://svn.gna.org/viewcvs/gdtc?rev=1716&view=rev
Log:
Fix stinking PHP/Smarty errors


Modified:
    trunk/gdtc/templates/smarty/admin/list_mail_template.tpl

Modified: trunk/gdtc/templates/smarty/admin/list_mail_template.tpl
URL: 
http://svn.gna.org/viewcvs/gdtc/trunk/gdtc/templates/smarty/admin/list_mail_template.tpl?rev=1716&r1=1715&r2=1716&view=diff
==============================================================================
--- trunk/gdtc/templates/smarty/admin/list_mail_template.tpl    (original)
+++ trunk/gdtc/templates/smarty/admin/list_mail_template.tpl    Thu Jun 16 
17:38:00 2016
@@ -89,16 +89,16 @@
 
   <table cellpadding="6">
   <tr>
-  <td>Nom (court) du modèle:</td><td><input {if $template.protected == 
1}disabled="disabled"{/if} size="32" name="name" value="{$template.name}"></td>
+  <td>Nom (court) du modèle:</td><td><input {if $template && 
$template.protected == 1}disabled="disabled"{/if} size="32" name="name" 
value="{if $template}{$template.name}{/if}"></td>
   </tr>
   <tr>
-  <td>Expéditeur:</td><td><input size="80" name="sender" value="{if 
$template.sender != 
''}{$template.sender|escape:'html'}{else}{$dtc_mail_bot|escape:'html'}{/if}"></td>
+  <td>Expéditeur:</td><td><input size="80" name="sender" value="{if $template 
&& $template.sender != 
''}{$template.sender|escape:'html'}{else}{$dtc_mail_bot|escape:'html'}{/if}"></td>
   </tr>
   <tr>
-  <td>Répondre à:</td><td><input size="80" name="reply_to" value="{if 
$template.reply_to != 
''}{$template.reply_to|escape:'html'}{else}{$dtc_mail_bot|escape:'html'}{/if}"></td>
+  <td>Répondre à:</td><td><input size="80" name="reply_to" value="{if 
$template && $template.reply_to != 
''}{$template.reply_to|escape:'html'}{else}{$dtc_mail_bot|escape:'html'}{/if}"></td>
   </tr>
   <tr>
-  <td>Sujet:</td><td><input size="80" name="subject" 
value="{$template.subject}"></td>
+  <td>Sujet:</td><td><input size="80" name="subject" value="{if 
$template}{$template.subject}{/if}"></td>
   </tr>
   <tr>
   <td>Insérer:</td><td><select>
@@ -109,12 +109,12 @@
   </tr>
   <tr>
   <td colspan="2">
-  <textarea wrap="off" id="text" cols="80" rows="20" 
name="text">{$template.text}</textarea>
+  <textarea wrap="off" id="text" cols="80" rows="20" name="text">{if 
$template}{$template.text}{/if}</textarea>
   </td>
   </tr>
   <tr>
   <td colspan="2">
-  <input type="checkbox" class="selectable" value="1" name="protected" {if 
$template.protected == 1}checked{/if}> Protéger contre la suppression<br/>
+  <input type="checkbox" class="selectable" value="1" name="protected" {if 
$template && $template.protected == 1}checked{/if}> Protéger contre la 
suppression<br/>
   <input type="hidden" name="protected_isset" value="1"/>
   </td>
   </tr>


_______________________________________________
Gdtc-commits mailing list
[email protected]
https://mail.gna.org/listinfo/gdtc-commits

Reply via email to