Skip to content

Commit d44183a

Browse files
Merge pull request #14 from Crowdhandler/fix/updatePerformnce
Changed method to use property_exists for the responseID property
2 parents dfc4517 + 3741894 commit d44183a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/GateKeeper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ private function setCookie($cookie)
288288
*/
289289
public function recordPerformance($httpCode=200)
290290
{
291-
if(@$this->result->responseID) {
291+
if(property_exists($this->result, 'responseID')) {
292292
$time = $this->timer->elapsed();
293293
$this->client->responses->put($this->result->responseID, array('code'=>$httpCode, 'time'=>$time));
294294
$this->debug('Page performance was recorded '.$time);

0 commit comments

Comments
 (0)