$this->params = json_decode(stripslashes($params['data']));
} else {
$params = json_decode(stripslashes($raw));
- $this->params = $params->data;
+ $this->params = $params;
}
} else {
// grab JSON data if there...
$raw .= $kb;
}
$params = json_decode(stripslashes($raw));
- $this->params = $params->data;
+ if ($params) {
+ $this->params = $params;
+ }
}
}