Fixes display of amount to pay in xnet events.
authorStéphane Jacob <sj@m4x.org>
Tue, 8 Feb 2011 21:14:26 +0000 (22:14 +0100)
committerStéphane Jacob <sj@m4x.org>
Tue, 8 Feb 2011 21:14:26 +0000 (22:14 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
templates/xnetevents/subscribe.tpl

index 61c7f23..3537fd3 100644 (file)
@@ -94,7 +94,7 @@
       <td>
         {if $event.topay}
         <div class="error">
-          {if !$event.paid}
+          {if $event.paid eq 0}
           Tu dois payer {$event.topay|replace:'.':','}&nbsp;&euro;.
           {elseif $event.paid < $event.topay}
           Tu dois encore payer {math equation="a-b" a=$event.topay b=$event.paid|replace:'.':','}&nbsp;&euro;