The script below is called when saving my app's options page. All options are stored in an array in $options.
I'm getting a debug error "undefined index, id" on the line with the comment below. Any ideas how I can fix the script?
foreach ($options as $value)
{
if( isset( $value['id'] ) && isset( $_REQUEST[$value['id']] ) )
{
update_option( $value['id'], stripslashes($_REQUEST[$value['id']]) );
}
else
{
update_option( $value['id'], ""); //Error Here
}
}