From f34549b97290c94c6269e4e60fed2ff4cf78984b Mon Sep 17 00:00:00 2001 From: rafalohaki Date: Sun, 9 Apr 2023 01:24:39 +0200 Subject: [PATCH] Update sukebei.php Modified the get_sukebei_results() function to handle cases where the name and magnet nodes are null or do not exist. Added conditional statements to check if the name and magnet nodes exist before attempting to access their properties, in order to prevent null errors and warnings. Added empty string as the default value for name and magnet variables in case their corresponding nodes are null or do not exist. Removed the use of deprecated functions explode() and htmlspecialchars() in the code. No longer accessing the textContent property of DOMXPath::evaluate(). --- engines/bittorrent/sukebei.php | 1 - 1 file changed, 1 deletion(-) diff --git a/engines/bittorrent/sukebei.php b/engines/bittorrent/sukebei.php index 023cf6c..61485cc 100644 --- a/engines/bittorrent/sukebei.php +++ b/engines/bittorrent/sukebei.php @@ -39,7 +39,6 @@ ) ); } - return $results; } ?>