Fixing to be compatible with CakePHP 2.4.5 and PHP5.4
Merge pull request #2 from agarzon/master

Fixing to be compatible with CakePHP 2.4.5 and PHP5.4