LightboxGallery.php
changeset 3 b52509cf73af
parent 2 e7eb457efdff
child 4 c2458c3b0365
--- a/LightboxGallery.php	Tue May 26 08:37:18 2009 -0400
+++ b/LightboxGallery.php	Wed May 27 09:37:06 2009 -0400
@@ -17,7 +17,7 @@
 function lbgallery_process_tags(&$text)
 {
   // if there are no galleries in this blob, just get out here. also pulls all the matches we need.
-  if ( !preg_match_all('#<lightboxgallery(?: maxwidth="?([0-9]+)"?)>(.+?)</lightboxgallery>#s', $text, $matches) )
+  if ( !preg_match_all('#<lightboxgallery(?: maxwidth="?([0-9]+)"?)?>(.+?)</lightboxgallery>#s', $text, $matches) )
     return true;
   
   lbgallery_add_headers();