Skip to content

Commit

Permalink
Fixed attempts to access protected properties on httpmessage
Browse files Browse the repository at this point in the history
  • Loading branch information
epixa committed Mar 23, 2011
1 parent d735c11 commit e7472e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/exodus/src/Service/Identica.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ public function usernameExists($username)
));
$response = $request->send();

if ($response->responseCode != 200 && $response->responseCode != 404) {
$code = $response->getResponseCode();

if ($code != 200 && $code != 404) {
throw new RuntimeException(sprintf(
'Could not determine the existence of identica user `%s`: %s',
$username, $response->responseStatus
$username, $response->getResponseStatus()
));
}

$code = $response->responseCode;

$lifetime = $this->_getCacheLifetimeByCode($code);
$cache->save($code, $key, array(), $lifetime);
}
Expand Down

0 comments on commit e7472e2

Please sign in to comment.