public function decode($array = NULL)
{
$CI =& get_instance();
if (is_array($array)) {
while (list($key) = each($array)) {
if (is_array($array[$key])) {
$array[$key] = $this->decode($array[$key]);
} elseif ($this->xss_clean) {
$array[$key] = $CI->security->xss_clean($array[$key]);
}
}
return $array;
}
$result = $this->xmlrpc_decoder($this->val);
if (is_array($result)) {
$result = $this->decode($result);
} elseif ($this->xss_clean) {
$result = $CI->security->xss_clean($result);
}
return $result;
}