File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -598,12 +598,12 @@ protected function _detect_api_key()
598598 // Find the key from server or arguments
599599 if (($ key = isset ($ this ->_args [$ api_key_variable ]) ? $ this ->_args [$ api_key_variable ] : $ this ->input ->server ($ key_name )))
600600 {
601- if ( ! ($ this -> client = $ this ->rest ->db ->where (config_item ('rest_key_column ' ), $ key )->get (config_item ('rest_keys_table ' ))->row ()))
601+ if ( ! ($ row = $ this ->rest ->db ->where (config_item ('rest_key_column ' ), $ key )->get (config_item ('rest_keys_table ' ))->row ()))
602602 {
603603 return FALSE ;
604604 }
605605
606- $ this ->rest ->key = $ this -> client ->{config_item ('rest_key_column ' )};
606+ $ this ->rest ->key = $ row ->{config_item ('rest_key_column ' )};
607607
608608 isset ($ row ->user_id ) AND $ this ->rest ->user_id = $ row ->user_id ;
609609 isset ($ row ->level ) AND $ this ->rest ->level = $ row ->level ;
You can’t perform that action at this time.
0 commit comments