You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
For issues like the following:
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 injs/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?The text was updated successfully, but these errors were encountered: