Skip to content
Extraits de code Groupes Projets
Valider 10ae6a47 rédigé par sgiehl's avatar sgiehl
Parcourir les fichiers

fixes #7258 - avoid notices

parent 2721f4dc
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -49,7 +49,7 @@ function getBrowserNameWithVersion($label)
$short = substr($label, 0, 2);
$ver = substr($label, 3, 10);
$browsers = BrowserParser::getAvailableBrowsers();
if (array_key_exists($short, $browsers)) {
if ($short && array_key_exists($short, $browsers)) {
return trim(ucfirst($browsers[$short]) . ' ' . $ver);
} else {
return Piwik::translate('General_Unknown');
......@@ -60,7 +60,7 @@ function getBrowserName($label)
{
$short = substr($label, 0, 2);
$browsers = BrowserParser::getAvailableBrowsers();
if (array_key_exists($short, $browsers)) {
if ($short && array_key_exists($short, $browsers)) {
return trim(ucfirst($browsers[$short]));
} else {
return Piwik::translate('General_Unknown');
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter