PDA

View Full Version : Register Globals



michael_s
07-18-2008, 06:00 AM
Unfortunatelly your solution generates a warning:
Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in ...


Modify function to:
function tep_session_is_registered($variable) {
// >>> BEGIN REGISTER_GLOBALS
// return session_is_registered($variable);
return (isset($_SESSION[$variable]));
//