Just installed the Sparkpost extension, and it threw an an error, that there was an undefined index, Enabled
( ! ) Notice: Undefined index: enabled in /www/wp-content/plugins/newsletter-sparkpost/sparkpost.php on line 53
The error message went away after I went into settings for Sparkpost and clicked save (Enabled/Disabled didn’t matter)
I reckon the error is that it’s querying for the “enabled” option, but the option doesn’t exist yet. Hence why it went away after I clicked save.
There’s two ways to fix it, either run an installation script when the plugin is installed, or do a check to see if the “enabled” option exists, before checking it in a if statement