From 9a8b3de3853300f504bdf776993b487606d0f7ab Mon Sep 17 00:00:00 2001 From: padams Date: Tue, 25 Jan 2022 00:28:49 +0000 Subject: [PATCH] fixing syntax --- owa_httpRequest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/owa_httpRequest.php b/owa_httpRequest.php index 953fc2cd..4edccfb1 100644 --- a/owa_httpRequest.php +++ b/owa_httpRequest.php @@ -102,7 +102,7 @@ function extractAnchors() { owa_coreAPI::debug( 'Found anchors: ' . print_r( $matches, true ) ); - return $matches + return $matches; } } @@ -112,7 +112,8 @@ function extractAnchorText( $url ) { $anchortext = ''; - foreach( $anchors as $match) { + foreach( $anchors as $match ) { + // match[0] = full matching tag // $match[2] = link address // $match[3] = link text