? galleryformatter-php53.patch
Index: galleryformatter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/galleryformatter/galleryformatter.module,v
retrieving revision 1.1.2.8
diff -u -r1.1.2.8 galleryformatter.module
--- galleryformatter.module	28 Sep 2010 09:19:11 -0000	1.1.2.8
+++ galleryformatter.module	28 Sep 2010 10:00:12 -0000
@@ -128,7 +128,7 @@
   // Add galleryformatter CSS.
   drupal_add_css(drupal_get_path('module', 'galleryformatter') .'/theme/galleryformatter.css');
 
-  if ($style_css != 'nostyle') {
+  if ($style != 'nostyle') {
     $style_css = _galleryformatter_get_style_css($style);
     drupal_add_css($style_css, 'module');
   }
Index: includes/galleryformatter.theme.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/galleryformatter/includes/Attic/galleryformatter.theme.inc,v
retrieving revision 1.1.2.19
diff -u -r1.1.2.19 galleryformatter.theme.inc
--- includes/galleryformatter.theme.inc	17 Jul 2010 13:49:05 -0000	1.1.2.19
+++ includes/galleryformatter.theme.inc	28 Sep 2010 10:00:12 -0000
@@ -66,6 +66,7 @@
 
         // link the slides to the original image if so configured
         $vars['link_to_full'] = $widget['link_to_full']; // let the tpl know if we are liking or not
+        $vars['gallery_style'] = ''; // initialize the key to avoid further warnings
         if ($widget['link_to_full'] == TRUE) {
           $vars['gallery_style'] = 'galleryformatter-view-full '; // give the gallery a class for themers to play with
           $link_attributes = array(
Index: theme/galleryformatter.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/galleryformatter/theme/galleryformatter.tpl.php,v
retrieving revision 1.1.2.5
diff -u -r1.1.2.5 galleryformatter.tpl.php
--- theme/galleryformatter.tpl.php	28 May 2010 09:58:26 -0000	1.1.2.5
+++ theme/galleryformatter.tpl.php	28 Sep 2010 10:00:12 -0000
@@ -30,11 +30,11 @@
       <?php foreach ($gallery_slides as $id => $data): ?>
         <li class="gallery-slide" id="<?php print $data['hash_id']; ?>">
           <?php print $data['image']; ?>
-          <?php if ($data['title'] || $data['description']): ?>
+          <?php if ((!empty($data['title'])) || (!empty($data['description']))): ?>
             <div class="panel-overlay">
               <div class="overlay-inner">
-                <?php if ($data['title']): ?><h3><?php print $data['title']; ?></h3><?php endif; ?>
-                <?php if ($data['description']): ?><p><?php print $data['description']; ?></p><?php endif; ?>
+                <?php if (!empty($data['title'])): ?><h3><?php print $data['title']; ?></h3><?php endif; ?>
+                <?php if (!empty($data['description'])): ?><p><?php print $data['description']; ?></p><?php endif; ?>
               </div>
             </div>
           <?php endif; ?>
