Ignore:
Timestamp:
Dec 8, 2013, 6:43:40 PM (11 years ago)
Author:
maron
Message:
  • Fixed: Load data from arrays only if array exists
  • Fixed: Import/cmd.php
  • Fixed: patch in Import/Import.php
  • Fixed: Can compare text with not complete
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/system.php

    r622 r630  
    4545    );
    4646    $Code = $Config['Web']['Locale'];
    47     if(array_key_exists('Locale', $_SESSION)) $Code = $_SESSION['Locale'];
    48     if(array_key_exists('locale', $_GET)) $Code = $_GET['locale'];
     47    if (isset($_SESSION))
     48      if(array_key_exists('Locale', $_SESSION)) $Code = $_SESSION['Locale'];
     49    if (isset($_GET))
     50      if(array_key_exists('locale', $_GET)) $Code = $_GET['locale'];
     51   
    4952    //echo(phpinfo());
    5053    if(!array_key_exists($Code, $LocaleManager->Available)) $Code = 'en';
Note: See TracChangeset for help on using the changeset viewer.