We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d44183a + 031f8b9 commit 3c5eec3Copy full SHA for 3c5eec3
1 file changed
src/GateKeeper.php
@@ -288,7 +288,7 @@ private function setCookie($cookie)
288
*/
289
public function recordPerformance($httpCode=200)
290
{
291
- if(property_exists($this->result, 'responseID')) {
+ if(isset($this->result) && property_exists($this->result, 'responseID')) {
292
$time = $this->timer->elapsed();
293
$this->client->responses->put($this->result->responseID, array('code'=>$httpCode, 'time'=>$time));
294
$this->debug('Page performance was recorded '.$time);
0 commit comments