Comparison bug when creating a group
-
At Line 221 of class-groups-group.php you do an === (identical) comparison on the parent id passed in.
wpdb->get_var is returning a string.
Since the group_id is an int in the database, it seems wrong to fail when an int is passing in to the create.
Can’t that test be == (equals) rather than ===?
Of could could cast the values in the comparison to avoid type issues?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Comparison bug when creating a group’ is closed to new replies.