Declare $log array first
Merge pull request #74 from Anahkiasen/patch-1

Declare $log array first