Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Wrong type: $message is array, not string #89

Closed
bitbucket-import opened this Issue Aug 19, 2011 · 0 comments

Comments

Projects
None yet
2 participants

In DB_Driver.php, the following code near line 1163 is setting $message to a strong:

{{{

!php

    if ($native == TRUE)
    {
        $message = $error;
    }

}}}

It should be

{{{

!php

        $message[] = $error;

}}}

because later in the code $message is expected to be an array, but $error is a string.

@derekjones derekjones pushed a commit that referenced this issue Aug 19, 2011

Phil Sturgeon Fixed a bug (Reactor #89) where MySQL export would fail if the table …
…had hyphens or other non alphanumeric/underscore characters.
b62cf1e

@philsturgeon philsturgeon pushed a commit that referenced this issue Sep 24, 2011

Phil Sturgeon Merge pull request #488 from narfbg/ci-issue-89
Fix issue #89 - variable type mismatch in DB display_error()
abe8b78

@sviande sviande pushed a commit to sviande/CodeIgniter that referenced this issue Jan 3, 2014

Phil Sturgeon Fixed a bug (Reactor #89) where MySQL export would fail if the table …
…had hyphens or other non alphanumeric/underscore characters.
1eac784
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment