Closed (fixed)
Project:
User Relationships
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2011 at 00:49 UTC
Updated:
19 Apr 2011 at 06:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
berdirConfirmed, notices the same thing, will investigate...
Comment #2
BenK commentedAny ideas as to what commit might be the cause?
Comment #3
berdirGot it.
The check was using isset() instead of !empty(). The difference is that isset() is TRUE if the value is actually FALSE but does exist, while !empty() returns FALSE for FALSE, 0, empty strings and so on.
The reason was a incorrect php notice fix, happened probably during the initial port.
This only happens when you've saved the account settings page of a user, then it explicitly stores FALSE.
Note that storing these settings in $user->data is a bad idea anyway, created a follow-up here: #1115514: Use custom tables to store UR user settings
Comment #4
BenK commentedAwesome! I tested the patch and it fixed the problem. :-) This is RTBC.
--Ben
Comment #5
berdirCommited!