[theme-reviewers] Need help with theme option page
Ryan Van Etten
ryanve at gmail.com
Fri Mar 15 18:45:30 UTC 2013
There is a great tool called Google <https://www.google.com/> for
troubleshooting errors ;)
On Fri, Mar 15, 2013 at 12:52 PM, Otto <otto at ottodestruct.com> wrote:
> "Undefined index" are pretty much always where you're using a
> variable's value without first testing if the variable is actually set
> or not.
> So if you have something like this:
> if ( $_REQUEST['action'] == 'whatever' )
> Then you need to modify it to this:
> if ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'whatever' )
> On Fri, Mar 15, 2013 at 11:36 AM, Carla Izumi Bamford
> <decadent.muse.org at gmail.com> wrote:
> > I'm trying to debug my function.php which is for the option page.
> > And I need some help figuring this out.
> > Notice: Undefined index: action in
> > on line 187
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the theme-reviewers