Fixes issue with E_NOTICE being thrown for adapter functions.