Fix Undefined Index: approved error notice