fixed PHP Notice for undefined constant in dynamic function calls
Merge pull request #2 from tiefpunkt/master

PHP Notices fixed.