Welcome Guest, Not a member yet? Register   Sign In
Logical bug in class CI_Lang
#1

[eluser]Unknown[/eluser]
Code:
function line($line = '')
{
        $line = ($line == '' OR ! isset($this->language[$line])) ? FALSE : $this->language[$line];

        // Because killer robots like unicorns!
        if ($line === FALSE)
        {
            log_message('error', 'Could not find the language line "'.$line.'"');
        }

        return $line;
}

If the $line will be overwritten by a boolean (line 132 in core/Lang.php), how could the error message show the original $line?

;-)
#2

[eluser]patwork[/eluser]
Right. https://bitbucket.org/ellislab/codeignit...or-logging




Theme © iAndrew 2016 - Forum software by © MyBB