PHP Warning for get_class()
-
Hi! Using the latest version of Socia Connect I am getting a PHP Warning on line 297 of
social-connect.php
presumably when$id_or_email
isfalse
ornull
. I fixed it locally with the following…Original
$user_id = (!is_integer($id_or_email) && !is_string($id_or_email) && get_class($id_or_email)) ? $id_or_email->user_id : $id_or_email;
Updated
$class = is_object( $id_or_email )? get_class( $id_or_email ) : false; $user_id = ( ! is_integer( $id_or_email ) && ! is_string( $id_or_email ) && $class )? $id_or_email->user_id : $id_or_email;
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Warning for get_class()’ is closed to new replies.