In mongodb_session_user_update we convert some values to an int if present however all may not be present - specifically picture and this can create notices.

CommentFileSizeAuthor
session-key-check.patch770 bytesmarcingy

Comments

marcingy’s picture

Status: Active » Needs review
chx’s picture

Now wait. '$set' => (array) $account + array( is done above, what sort of user do you have that does not have array('uid', 'created', 'access', 'login', 'status', 'picture') these??

marcingy’s picture

Specifically the issue is with picture not being present but the test for all potential items seemed more elegant. Well you know our database is em how should we put it interesting ;)

chx’s picture

*cough* is that the database I architected :) ? No wonder it's interesting. We have another issue here brewing about this code which is slightly outdated. Stay tuned.