Index: branches/5.2.x/core/kernel/utility/debugger.php =================================================================== diff -u -N -r15569 -r15597 --- branches/5.2.x/core/kernel/utility/debugger.php (.../debugger.php) (revision 15569) +++ branches/5.2.x/core/kernel/utility/debugger.php (.../debugger.php) (revision 15597) @@ -1,6 +1,6 @@ SrcNameValue $value) { - if ( !is_array($value) && trim($value) == '' ) { - $value = 'no value'; - } - else { - $value = htmlspecialchars($this->print_r($value, true)); - } + $super_globals = Array ('GE' => $_GET, 'PO' => $_POST, 'CO' => $_COOKIE); - $in_cookie = isset($_COOKIE[$key]); - $src = isset($_GET[$key]) && !$in_cookie ? 'GE' : (isset($_POST[$key]) && !$in_cookie ? 'PO' : ($in_cookie ? 'CO' : '?')); - echo '' . $src . '' . $key . '' . $value . ''; - } + foreach ($super_globals as $prefix => $data) { + foreach ($data as $key => $value) { + if ( !is_array($value) && trim($value) == '' ) { + $value = 'no value'; + } + else { + $value = htmlspecialchars($this->print_r($value, true)); + } + + echo '' . $prefix . '' . $key . '' . $value . ''; + } + } ?>