Show
Ignore:
Timestamp:
04/28/2008 11:04:06 AM (7 months ago)
Author:
Geert
Message:

Kohana::user_agent('languages') and Kohana::user_agent('charsets') now *always* returns an array (NULL was possible before)

Files:
1 modified

Legend:

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

    r2564 r2586  
    993993                                break; 
    994994                                case 'languages': 
     995                                        $return = array(); 
    995996                                        if ( ! empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) 
    996997                                        { 
     
    10031004                                break; 
    10041005                                case 'charsets': 
     1006                                        $return = array(); 
    10051007                                        if ( ! empty($_SERVER['HTTP_ACCEPT_CHARSET'])) 
    10061008                                        {