Error in util class: SwpmMemberUtils
-
I found an error in
get_user_by_email
method:public static function get_user_by_email($swpm_email) { //Retrieves the SWPM user record for the given member email address global $wpdb; $query = $wpdb->prepare("SELECT * FROM {$wpdb->prefix}swpm_members_tbl WHERE email = %d", $swpm_email); echo $query; $result = $wpdb->get_row($query); return $result; }
It has %d instead of %s in prepare statement.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Error in util class: SwpmMemberUtils’ is closed to new replies.