awhitney42/codeigniter-restserver-resources

[key.php] Why use _put() in a post function?

Opened this issue · 0 comments

Line: 39

// If no key level provided, give them a rubbish one
$level = $this->_put('level') ? $this->_put('level') : 1;
$ignore_limits = $this->_put('ignore_limits') ? $this->_put('ignore_limits') : 1;

I changed it into:

// If no key level provided, give them a rubbish one
$level = $this->_post('level') ? $this->_post('level') : 1;
$ignore_limits = $this->_post('ignore_limits') ? $this->_post('ignore_limits') : 1;

Now I can get a not rubbish key, Is this a bug?