fixed PHP Notice for undefined constant in dynamic function calls