Skip to content

Commit

Permalink
adding check for method on obj.
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Jan 24, 2022
1 parent 4ec27fb commit cb9c425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion owa_httpRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ function getRequest($url, $arguments = '') {
$r = $e->getRequest();
$res = null;

if ( $e->hasResponse() ) {
if ( method_exists( $e, 'hasResponse' ) && $e->hasResponse() ) {

$res = $e->getResponse();
}
Expand Down

0 comments on commit cb9c425

Please sign in to comment.