From cb9c42523f94661fa36d080d827f218a5f677cf5 Mon Sep 17 00:00:00 2001 From: padams Date: Mon, 24 Jan 2022 19:18:22 +0000 Subject: [PATCH] adding check for method on obj. --- owa_httpRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owa_httpRequest.php b/owa_httpRequest.php index f21c4db4..5af78c86 100644 --- a/owa_httpRequest.php +++ b/owa_httpRequest.php @@ -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(); }