Fixed 5.3 error PHP Fatal error:  Using $this when not in object context