Synced
isset returns false if the variable is set but null. (afc7318cf7)
This commit is contained in:
parent
8c5da86e0a
commit
c5f59aaeb9
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue