Commit 1c1f3c38 authored by Jon Pugh's avatar Jon Pugh

more issets()

parent 5b9110a3
......@@ -55,7 +55,7 @@ class SiteContext extends PlatformContext implements ConfigurationInterface
}
// Load http service from platform if site doesn't have them.
if (!isset($this->serviceSubscriptions['http']) && $this->platform->hasService('http')) {
if (!isset($this->serviceSubscriptions['http']) && isset($this->platform) && $this->platform->hasService('http')) {
$this->serviceSubscriptions['http'] = $this->platform->getSubscription('http');
$this->serviceSubscriptions['http']->setContext($this);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment