Browse Source

Minor - If the variable is not set, do not show them template variable

Julio Montoya 12 years ago
parent
commit
e50854012d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      main/template/default/layout/page_body.tpl

+ 3 - 3
main/template/default/layout/page_body.tpl

@@ -1,19 +1,19 @@
 {#  Actions  #}
-{% if actions is not null %}
+{% if actions != '' %}
     <div class="actions">
         {{ actions }}
     </div>
 {% endif %}
 
 {#  Page header #}
-{% if header is not null %}    
+{% if header != '' %}    
     <div class="page-header">
         <h1>{{ header }}</h1>
     </div>
 {% endif %}
 
 {#  Show messages #}
-{% if message is not null %}    
+{% if message != '' %}    
     <section id="messages">
         {{ message}}
     </section>