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-04-05 07:54:50 +0400
committermattab <matthieu.aubry@gmail.com>2014-04-05 07:54:50 +0400
commit489ddf494a982755a046bd7a5330097c74bf564c (patch)
treee407053b1c820fdd8d0051b5c5eb7348933ab5e1 /plugins
parent94d0ce393b2c496cda571571a0425af846406fda (diff)
Trying to fix: PHP Fatal error: Call to a member function getCurrency() on a non-object in /home/travis/build/piwik/piwik/plugins/Live/API.php on line 554
https://travis-ci.org/piwik/piwik/jobs/22318726 Note: this should not happen really and I'm puzzled... especially as it works on other PHP versions...
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Live/API.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Live/API.php b/plugins/Live/API.php
index 054759cceb..f9629591aa 100644
--- a/plugins/Live/API.php
+++ b/plugins/Live/API.php
@@ -551,7 +551,7 @@ class API extends \Piwik\Plugin\API
$visitor = new Visitor($visitorDetailsArray);
$visitorDetailsArray = $visitor->getAllVisitorDetails();
- if($website) {
+ if(is_object($website)) { // PHP 5.3 fail on travis
$visitorDetailsArray['siteCurrency'] = $website->getCurrency();
$visitorDetailsArray['siteCurrencySymbol'] = @$currencies[$visitorDetailsArray['siteCurrency']];
}