This is due to the following line:
$result->value ? unserialize($result->value) : FALSE
It should read:
empty($result->value) ? FALSE : unserialize($result->value)
(i.e., it should use empty() to check for a valid value, rather than testing a potentially nonexistent variable as a boolean.)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | user_variable-empty-fix-1687936.patch | 903 bytes | jessepinho |
Comments
Comment #1
jessepinho commentedPatch.
Comment #2
orb commentedThank you.
Fix in 7.x-1.1
Comment #3
orb commentedFix 6.x-1.2