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:
Diffstat (limited to 'plugins/Referrers')
-rw-r--r--plugins/Referrers/Controller.php2
-rw-r--r--plugins/Referrers/lang/zh-tw.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Referrers/Controller.php b/plugins/Referrers/Controller.php
index 4554acd35a..7f3d2079cb 100644
--- a/plugins/Referrers/Controller.php
+++ b/plugins/Referrers/Controller.php
@@ -410,7 +410,7 @@ function DisplayTopKeywords($url = "")
$api = $api . "&url=" . urlencode($url);
$keywords = @json_decode(file_get_contents($api), $assoc = true);
Common::sendHeader('Content-Type: text/html; charset=utf-8', true);
- if ($keywords === false || isset($keywords["result"])) {
+ if ($keywords === false || isset($keywords["result"]) || !is_array($keywords)) {
// DEBUG ONLY: uncomment for troubleshooting an empty output (the URL output reveals the token_auth)
//echo "Error while fetching the <a href=\'".$api."\'>Top Keywords from Piwik</a>";
return;
diff --git a/plugins/Referrers/lang/zh-tw.json b/plugins/Referrers/lang/zh-tw.json
index fdd9137b78..7dcf98da66 100644
--- a/plugins/Referrers/lang/zh-tw.json
+++ b/plugins/Referrers/lang/zh-tw.json
@@ -21,7 +21,7 @@
"TypeDirectEntries": "%s 個來自直接流量",
"TypeSearchEngines": "%s 個來自搜尋引擎",
"TypeWebsites": "%s 個來自網站",
- "UsingNDistinctUrls": "(使用 %s 不同的網址)",
+ "UsingNDistinctUrls": "(使用 %s 個不同的網址)",
"Websites": "網站",
"WidgetExternalWebsites": "外部網站清單",
"WidgetSocials": "社交網站清單"