From afc7318cf7243a6d27b3f2458fc6f59c60c41065 Mon Sep 17 00:00:00 2001 From: lolcat Date: Sat, 31 Jan 2026 02:38:33 -0500 Subject: [PATCH] the fuck? isset returns false if the variable is set but null. what the fuck lol --- lib/fuckhtml.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fuckhtml.php b/lib/fuckhtml.php index 24c0bf3..9018627 100644 --- a/lib/fuckhtml.php +++ b/lib/fuckhtml.php @@ -13,7 +13,7 @@ class fuckhtml{ if(is_array($html)){ - if(!isset($html["innerHTML"])){ + if(!array_key_exists("innerHTML", $html)){ throw new Exception("(load) Supplied array doesn't contain an innerHTML index"); } @@ -339,7 +339,7 @@ class fuckhtml{ if(is_array($html)){ - if(!isset($html["innerHTML"])){ + if(!array_key_exists("innerHTML", $html)){ throw new Exception("(getTextContent) Supplied array doesn't contain an innerHTML index"); }