From bae17bc39b58ae0c0b68706e6942ec123ad757bc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 16 May 2013 12:37:46 +0200 Subject: [PATCH] Fix: Removed warning --- htdocs/core/class/translate.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 35271325247..b5f2dfce9c3 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -194,7 +194,7 @@ class Translate // Redefine alt $langarray=explode('_',$langofdir); - if ($alt < 1 && strtolower($langarray[0]) == strtolower($langarray[1])) $alt=1; + if ($alt < 1 && isset($langarray[1]) && strtolower($langarray[0]) == strtolower($langarray[1])) $alt=1; if ($alt < 2 && (strtolower($langofdir) == 'en_us' || strtolower($langofdir) == 'fr_fr' || strtolower($langofdir) == 'es_es')) $alt=2; foreach($this->dir as $keydir => $searchdir)