diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-05 07:54:50 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-05 07:54:50 +0400 |
commit | 489ddf494a982755a046bd7a5330097c74bf564c (patch) | |
tree | e407053b1c820fdd8d0051b5c5eb7348933ab5e1 /plugins | |
parent | 94d0ce393b2c496cda571571a0425af846406fda (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.php | 2 |
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']]; } |