Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing undefined variables #4

Open
g33kgrrl opened this issue Jan 26, 2013 · 0 comments
Open

Passing undefined variables #4

g33kgrrl opened this issue Jan 26, 2013 · 0 comments
Assignees
Labels

Comments

@g33kgrrl
Copy link
Collaborator

For issues like the following:

PHP Notice:  Undefined index: data in /var/www/php/maps_feed.php on line 27, referer: http://localhost/

I've been setting the PHP to assume a value of 'null' if the variables in question are passed undefined, but I suspect it may be best practice to fix that in the JavaScript that calls it. I see the maps_feed.php call at line 72 in js/tidepoolsframeworks/map_rendering.js , for example, but I don't know the jQuery syntax for initializing 'data' to 'null' if it doesn't get any results when it looks for :maps. Thoughts?

@ghost ghost assigned alyxb and g33kgrrl Jan 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants