? sympal_use_empty.patch
Index: page.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/themes/sympal_theme/Attic/page.tpl.php,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 page.tpl.php
--- page.tpl.php	11 Apr 2007 13:44:38 -0000	1.1.2.2
+++ page.tpl.php	12 Apr 2007 15:38:24 -0000
@@ -27,11 +27,10 @@
   </div>
 
   <div id="content">
-    <?php if ($tabs != ""): ?>
-      <?php print $tabs ?>
-    <?php endif; ?>
+    <?php if (!empty($tabs)) print $tabs ?>
+
     <div id="content-main">
-      <?php if ($title != ""): ?>
+      <?php if (!empty($title)): ?>
         <h2 class="content title" id="content-title"><?php print $title ?></h2>
       <?php endif; ?>
 
@@ -39,15 +38,15 @@
         <div id="content-prefix" class="content prefix"><?php print $content_prefix ?></div>
       <?php endif; ?>
 
-      <?php if ($mission != ""): ?>
+      <?php if (!empty($mission)): ?>
         <div id="content-mission"><?php print $mission ?></div>
       <?php endif; ?>
 
-      <?php if ($help != ""): ?>
+      <?php if (!empty($help)): ?>
         <p id="content-help"><?php print $help ?></p>
       <?php endif; ?>
 
-      <?php if ($messages != ""): ?>
+      <?php if (!empty($messages)): ?>
         <div id="content-message"><?php print $messages ?></div>
       <?php endif; ?>
 
@@ -60,10 +59,10 @@
   </div>
 
   <div id="navigation">
-    <?php if (count($primary_links)): ?>
+    <?php if (!empty($primary_links)): ?>
       <?php print theme('primary_links', $primary_links); ?>
     <?php endif; ?>
-    <?php if (count($secondary_links)): ?>
+    <?php if (!empty($secondary_links)): ?>
       <?php print theme('secondary_links', $secondary_links); ?>
     <?php endif; ?>
     <?php print $breadcrumb; ?>
@@ -71,9 +70,7 @@
   </div>
 
   <div id="tools">
-    <?php if ($tools != ""): ?>
-      <?php print $tools ?>
-    <?php endif; ?>
+    <?php if (!empty($tools)) print $tools ?>
   </div>
 
   <?php if ($search): ?>
@@ -84,7 +81,7 @@
 
   <div id="siteinfo">
     <?php print $footer ?>
-    <?php if ($footer_message) : ?>
+    <?php if ($footer_message): ?>
     <p id="siteinfo-details"><?php print $footer_message;?></p>
     <?php endif; ?>
   </div>
