the fuck? isset returns false if the variable is set but null. what the fuck lol

This commit is contained in:
2026-01-31 02:38:33 -05:00
parent 1991206de4
commit afc7318cf7

View File

@@ -13,7 +13,7 @@ class fuckhtml{
if(is_array($html)){ 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"); throw new Exception("(load) Supplied array doesn't contain an innerHTML index");
} }
@@ -339,7 +339,7 @@ class fuckhtml{
if(is_array($html)){ 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"); throw new Exception("(getTextContent) Supplied array doesn't contain an innerHTML index");
} }