aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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