db must be first initialized before any sessions start

This commit is contained in:
Claude 2015-09-02 12:21:57 +02:00
parent 1fdaf1251c
commit a9c5fee0c6
2 changed files with 4 additions and 1 deletions

View File

@ -52,7 +52,7 @@ $autoload['packages'] = array();
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
*/
$autoload['libraries'] = array('database', 'session', 'carabiner');
$autoload['libraries'] = array('database', 'carabiner');
/*

View File

@ -93,6 +93,9 @@ class Main extends CI_Controller
$this->dbforge->add_key('timestamp');
$this->dbforge->create_table('sessions', true);
}
// load this after db has been initialized
$this->load->library('session');
if (!$this->db->table_exists('pastes'))
{