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:
authormattab <matthieu.aubry@gmail.com>2014-10-08 09:38:27 +0400
committermattab <matthieu.aubry@gmail.com>2014-10-08 09:38:27 +0400
commitd713a864d250f6b5f6edf05129d73f3b109c1a33 (patch)
tree43d3eda911e26e9935fb1a7e7f33db3e8287309b /plugins/Provider
parentaa6de241fe398ea578524dfe11f18c44fe6e7013 (diff)
Merged
Diffstat (limited to 'plugins/Provider')
-rw-r--r--plugins/Provider/Visitor.php2
-rw-r--r--plugins/Provider/functions.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Provider/Visitor.php b/plugins/Provider/Visitor.php
index 0efbb92eb3..757ac19783 100644
--- a/plugins/Provider/Visitor.php
+++ b/plugins/Provider/Visitor.php
@@ -23,7 +23,7 @@ class Visitor
public function getProvider()
{
- if (isset($this->details['location_provider'])) {
+ if (!isset($this->details['location_provider'])) {
return $this->details['location_provider'];
} else {
return Piwik::translate('General_Unknown');
diff --git a/plugins/Provider/functions.php b/plugins/Provider/functions.php
index df549160d8..3e2c4a2da8 100644
--- a/plugins/Provider/functions.php
+++ b/plugins/Provider/functions.php
@@ -38,7 +38,7 @@ function getHostnameName($in)
function getHostnameUrl($in)
{
if ($in == DataTable::LABEL_SUMMARY_ROW || empty($in) || strtolower($in) === 'ip') {
- return false;
+ return null;
}
// if the name looks like it can be used in a URL, use it in one, otherwise link to startpage