Bug fix

http://kiwitrees.net/bug-reporting/log-file-error…gallery-module/ ‎
Minor style change