controllers/Credential.php
protected function updateSubmittedCredential()
    {
        $this->controlAccess('module_gapi_credential_edit');

        if ($this->credential->update($this->data_credential['credential_id'], $this->getSubmitted())) {
            $this->redirect('admin/report/gapi', $this->text('Credential has been updated'), 'success');
        }

        $this->redirect('', $this->text('Credential has not been updated'), 'warning');
    }
protected function updateSubmittedCredential()
    {
        $this->controlAccess('module_gapi_credential_edit');

        if ($this->credential->update($this->data_credential['credential_id'], $this->getSubmitted())) {
            $this->redirect('admin/report/gapi', $this->text('Credential has been updated'), 'success');
        }

        $this->redirect('', $this->text('Credential has not been updated'), 'warning');
    }
protected function updateSubmittedCredential ( ) { $ this -> controlAccess ( 'module_gapi_credential_edit' ) ; if ( $ this -> credential -> update ( $ this -> data_credential [ 'credential_id' ] , $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( 'admin/report/gapi' , $ this -> text ( 'Credential has been updated' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Credential has not been updated' ) , 'warning' ) ; }
Updates a submitted credential
Updates a submitted credential