Fix PHP Notice caused by non-existing callback function