We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6efc5d commit e911a7bCopy full SHA for e911a7b
application/libraries/REST_Controller.php
@@ -1006,7 +1006,7 @@ protected function _detect_api_key()
1006
1007
$existsactive = $this->db->query("SELECT api_key_activated FROM api_keys WHERE api_key = '".$key."' ");
1008
$isactive = $existsactive->result();
1009
- if ( ! ($row = $this->rest->db->where($this->config->item('rest_key_column'), $key)->get($this->config->item('rest_keys_table'))->row() ) || $isactive[0]->activated == 'no' )
+ if ( ! ($row = $this->rest->db->where($this->config->item('rest_key_column'), $key)->get($this->config->item('rest_keys_table'))->row() ) || $isactive[0]->api_key_activated == 'no' )
1010
{
1011
return FALSE;
1012
}
0 commit comments