Fix PHP notice undefined index modfunc