title: Uninitialized string offset: 0
body: <p>I got this error when I load database:</p>
  
  <blockquote>
    <p>A PHP Error was encountered
        Severity: Notice
        Message: Uninitialized string offset: 0
        Filename: mysqli/mysqli_driver.php
        Line Number: 120
        Backtrace:
        File: /home1/learnio3/public_html/application/controllers/Reading.php
        Line: 9
        Function: database</p>
  
  <pre><code>File: /home1/learnio3/public_html/index.php
  Line: 315
  Function: require_once
  </code></pre>
  </blockquote>
  
  <pre><code>public function __construct() {
      parent::__construct();
      $this-&gt;load-&gt;database();
      $this-&gt;load-&gt;helper('url');
  
  }
  </code></pre>
  
  <p>database.php</p>
  
  <pre><code>$active_group = 'default';
  $query_builder = TRUE;
  
  $db['default'] = array(
      'dsn'   =&gt; '',
      'hostname' =&gt; '',
      'username' =&gt; 'learnio3_bram',
      'password' =&gt; 'xxxxxxx',
      'database' =&gt; 'learnio3_book',
      'dbdriver' =&gt; 'mysqli',
      'dbprefix' =&gt; '',
      'pconnect' =&gt; FALSE,
      'db_debug' =&gt; (ENVIRONMENT !== 'production'),
      'cache_on' =&gt; FALSE,
      'cachedir' =&gt; '',
      'char_set' =&gt; 'utf8',
      'dbcollat' =&gt; 'utf8_general_ci',
      'swap_pre' =&gt; '',
      'encrypt' =&gt; FALSE,
      'compress' =&gt; FALSE,
      'stricton' =&gt; FALSE,
      'failover' =&gt; array(),
      'save_queries' =&gt; TRUE
  );
  </code></pre>