Show
Ignore:
Timestamp:
02/27/2008 07:22:48 AM (11 months ago)
Author:
armen
Message:

Fixed a possible typo.
Checked to find out if $description is an array.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/core/Kohana.php

    r2171 r2175  
    508508                { 
    509509                        $description = Kohana::lang('errors.'.E_RECOVERABLE_ERROR); 
    510                         $description = $description[2]; 
     510                        $description = is_array($description) ? $description[2] : ''; 
    511511                } 
    512512                else 
     
    794794                        // Loop through the files and include each one, so SYSPATH files 
    795795                        // can be overloaded by more localized files 
    796                         foreach(self::find_file('i18n', $filename) as $filename) 
    797                         { 
    798                                 include $filename; 
     796                        foreach(self::find_file('i18n', $filename) as $file) 
     797                        { 
     798                                include $file; 
    799799 
    800800                                // Merge in configuration