New Zenner
- Join Date:
- Aug 2012
- Posts:
- 46
- Plugin Contributions:
- 0
[Done v1.6.0] Redundant code in init_sanitize.php
/**
* process all $_SESSION terms
*/
if (isset($_SESSION) && count($_SESSION) > 0) {
foreach($_SESSION as $key=>$value){
if(is_array($value)){
foreach($value as $key2 => $val2){
unset($GLOBALS[$key]); // <<-- shouldn't this be key2 ?
}
} else {
unset($GLOBALS[$key]);
}
}
}