diff options
Diffstat (limited to 'plugins/Referrers/Controller.php')
-rw-r--r-- | plugins/Referrers/Controller.php | 2 |
1 files changed, 1 insertions, 1 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; |