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.)

CommentFileSizeAuthor
#1 user_variable-empty-fix-1687936.patch903 bytesjessepinho

Comments

jessepinho’s picture

StatusFileSize
new903 bytes

Patch.

orb’s picture

Status: Active » Fixed

Thank you.
Fix in 7.x-1.1

orb’s picture

Status: Fixed » Closed (fixed)

Fix 6.x-1.2