Only load the auth_ldap library if authentication is turend on

This commit is contained in:
Daniel 2012-09-30 13:34:11 -04:00
parent 24b41b5447
commit dc8b8eaa46

View File

@ -31,7 +31,9 @@ class Main extends CI_Controller
{
parent::__construct();
$this->load->model('languages');
$this->load->library('auth_ldap');
if ($this->config->item('require_auth') ){
$this->load->library('auth_ldap');
}
if (!$this->db->table_exists('ci_sessions'))
{