Fixed JS syntax error on thumbnail spacing

A bug exists where if the user sets thumbnail spacing to "0" pixels, the zero is passed as null and renders in client-side as "slideshow.spacing = ;" causing the entire slideshow to not display.

I fixed this in /views/default/gallery.php on line 270 by changing:

slideshow.spacing = <?php echo $options['thumbsspacing']; ?>;

to:

slideshow.spacing = <?php echo $options['thumbsspacing'] ? $options['thumbsspacing'] : '0'; ?>;

Comments

Sign In or Register to comment.