fixes #552

undefined var $log_data
Merge branch 'hotfixes' into stable