Prevents some php notices.
authorStéphane Jacob <sj@m4x.org>
Tue, 15 Mar 2011 10:24:15 +0000 (11:24 +0100)
committerStéphane Jacob <sj@m4x.org>
Wed, 16 Mar 2011 16:46:52 +0000 (17:46 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
templates/xnetgrp/membres-add.tpl
templates/xnetgrp/membres-new-search.tpl

index 65f2876..33e0d09 100644 (file)
@@ -71,7 +71,7 @@ function searchX()
   <table class="tinybicol">
     <tr>
       <td class="center" colspan="2">
-        <input type="text" id="email" name="email" size="40" value="{$platal->argv[1]}" />
+        <input type="text" id="email" name="email" size="40" value="{if t($platal->argv[1])}{$platal->argv[1]}{/if}" />
         <input type='submit' value='Ajouter'
           onclick='this.form.action += this.form.email.value' />
       </td>
index 6234ef8..8b70729 100644 (file)
@@ -22,7 +22,7 @@
 
   {if t($too_many)}
   Les critères de recherche ne sont pas assez précis.
-  {elseif $users|@count eq 0}
+  {elseif !t($users) || $users|@count eq 0}
   Aucun camarade non-inscrit ne correspond aux informations fournies.
   {else}
   Camarades correspondants&nbsp;: