mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-30 23:41:08 -05:00
Only load the auth_ldap library if authentication is turend on
This commit is contained in:
parent
24b41b5447
commit
dc8b8eaa46
@ -31,7 +31,9 @@ class Main extends CI_Controller
|
|||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
$this->load->model('languages');
|
$this->load->model('languages');
|
||||||
|
if ($this->config->item('require_auth') ){
|
||||||
$this->load->library('auth_ldap');
|
$this->load->library('auth_ldap');
|
||||||
|
}
|
||||||
|
|
||||||
if (!$this->db->table_exists('ci_sessions'))
|
if (!$this->db->table_exists('ci_sessions'))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user