aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2026-01-31 02:38:33 -0500
committerlolcat <will@lolcat.ca>2026-01-31 02:38:33 -0500
commitafc7318cf7243a6d27b3f2458fc6f59c60c41065 (patch)
tree3114f8a05611c96965c11a6d59d9f0fd8fd292f6
parent1991206de44f644c44471fcb137993f96446365c (diff)
the fuck? isset returns false if the variable is set but null. what the fuck lol
-rw-r--r--lib/fuckhtml.php4
1 files 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");
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage