rodrigoprimo / social-connect

WordPress plugin for signup/login using social media providers.
http://wordpress.org/extend/plugins/social-connect/
GNU General Public License v3.0
73 stars 40 forks source link

Fix PHP notice in social-connect.php #55

Open doublesharp opened 10 years ago

doublesharp commented 10 years ago

Prevent PHP Notice from the get_class() method when $id_or_email is false or null.

rodrigoprimo commented 10 years ago

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.