Allow array to be written to log file.

Close: #1256
Merge branch 'master' of git@github.com:opencart/opencart.git