Skip to content

Commit

Permalink
fix accessing ctx member
Browse files Browse the repository at this point in the history
  • Loading branch information
willamowius committed Aug 14, 2021
1 parent 6a9260e commit b8ac074
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EANSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class EANSearch {

function __construct($accessToken) {
$this->accessToken = $accessToken;
$ctx = stream_context_create(array('http' => array('timeout' => 180)));
$this->ctx = stream_context_create(array('http' => array('timeout' => 180)));
ini_set('default_socket_timeout', 180);
}

Expand Down Expand Up @@ -75,7 +75,7 @@ function verifyChecksum($ean) {
}

function setTimout($sec) {
$ctx = stream_context_create(array('http' => array('timeout' => $sec)));
$this->ctx = stream_context_create(array('http' => array('timeout' => $sec)));
ini_set('default_socket_timeout', $sec);
}

Expand Down

0 comments on commit b8ac074

Please sign in to comment.