Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattpiwik <matthieu.aubry@gmail.com>2010-06-15 14:04:53 +0400
committermattpiwik <matthieu.aubry@gmail.com>2010-06-15 14:04:53 +0400
commitc791c599a993246fd402d97002176d2313753e2f (patch)
tree919e2117826a99b4056b3776a7326fb3f9a18311 /plugins/UserSettings/functions.php
parentde3f2831e96493ab18df0e95ce5081a1fb92e0d7 (diff)
git-svn-id: http://dev.piwik.org/svn/trunk@2305 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/UserSettings/functions.php')
-rw-r--r--plugins/UserSettings/functions.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/UserSettings/functions.php b/plugins/UserSettings/functions.php
index e16ed60867..c2aebe7b64 100644
--- a/plugins/UserSettings/functions.php
+++ b/plugins/UserSettings/functions.php
@@ -126,11 +126,19 @@ function Piwik_getBrowserVersion($str)
function Piwik_getBrowsersLogo($label)
{
$id = Piwik_getBrowserId($label);
+ // For aggregated row 'Others'
+ if(empty($id)) {
+ $id = 'UNK';
+ }
return 'plugins/UserSettings/images/browsers/'. $id . '.gif';
}
function Piwik_getOSLogo($label)
{
+ // For aggregated row 'Others'
+ if(empty($label)) {
+ $label = 'UNK';
+ }
$path = 'plugins/UserSettings/images/os/'. $label . '.gif';
return $path;
}