Minor fixes to keep down the log notices

Some undefined indexes and a deprecated function. Note that the default capability is now 'manage_options' instead of 10 (which is deprecated).