Open doublesharp opened 10 years ago
Prevent PHP Notice from the get_class() method when $id_or_email is false or null.
get_class()
$id_or_email
false
null
Thanks for your contribution.
What about simply replacing get_class($id_or_email) with is_object($id_or_email)? I guess that this will fix the PHP notice with less code.
Prevent PHP Notice from the
get_class()
method when$id_or_email
isfalse
ornull
.