original_string: public function get_cfg($attr = ''){
      if ( $this->check() ){
        if ( !$this->cfg ){
          $this->cfg = $this->session->get('cfg');
        }
        if ( empty($attr) ){
          return $this->cfg;
        }
        if ( isset($this->cfg[$attr]) ){
          return $this->cfg[$attr];
        }
        return false;
      }
    }
code: public function get_cfg($attr = ''){
      if ( $this->check() ){
        if ( !$this->cfg ){
          $this->cfg = $this->session->get('cfg');
        }
        if ( empty($attr) ){
          return $this->cfg;
        }
        if ( isset($this->cfg[$attr]) ){
          return $this->cfg[$attr];
        }
        return false;
      }
    }
code_tokens: public function get_cfg ( $ attr = '' ) { if ( $ this -> check ( ) ) { if ( ! $ this -> cfg ) { $ this -> cfg = $ this -> session -> get ( 'cfg' ) ; } if ( empty ( $ attr ) ) { return $ this -> cfg ; } if ( isset ( $ this -> cfg [ $ attr ] ) ) { return $ this -> cfg [ $ attr ] ; } return false ; } }
docstring: Returns the current user's configuration.
  
  @param string $attr
  @return mixed
docstring_tokens: Returns the current user s configuration .