(bug-fix:minor) Avoid 'undefined index' warnings by making sure to access to $_POST and $_GET keys only if they exist.