Fix PHP errors on logout

This commit is contained in:
Eike Foken
2011-09-09 15:04:56 +02:00
parent 00f5a77828
commit 1b34fded3b
2 changed files with 2 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ class Auth extends CI_Controller {
}
$data['messages'] = $this->messages->get('success');
$this->messages->clear(); // clear all messages
if ($this->form_validation->run() === true) {
// check for "remember me"

View File

@@ -183,6 +183,7 @@ class Access {
}
$this->ci->session->sess_destroy();
$this->ci->session->sess_create();
$this->ci->messages->add(_('Logged out successfully'), 'success');
return true;