• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.