[eluser]xwero[/eluser]
It's a php error. You can't add an array as a value of a constant. So you have to work with
Code:
define('MY_GET',$_SERVER['QUERY_STRING']);
To get the key value(s) out from the string you can use this function
Code:
function get_pairs($key='')
{
parse_str(MY_GET,$pairs);
// all pairs
if(empty($key))
{
return $pairs;
}
// some pairs
if(is_array($key))
{
$keys = array_keys($pairs);
$output = array();
foreach($key as $k)
{
if(in_array($k,$keys))
{
$output[$k] = $pairs[$k];
}
}
return $output
}
// a pair value
if(isset($pairs[$key]))
{
return $pairs[$key];
}
}
Another solution based on the same constant is to repopulate the GET global with the constant after the input class cleaned the globals. The pre_controller hook is best suited for this.