Compatibility to 1.6

Replaced deprecated $this -> fetch_param with $this -> fetchParam after
log warnings.
Merge pull request #1 from felics/master

Compatibility to 1.6