pyrocms/pyrocms — pull request #1862 by jHoldroyd (2012-09-17 19:28:52+00:00)
Title: Fixes an issue with invalid users in streams_core

We found an issue with the user field type where it would presume that a user would be found, so if a user was deleted or an ID was changed it would start throwing the below warnings on lines 128-131:

A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: user/field.user.php
Line Number: 129

It now performs a check to ensure that the $user array is not empty and returns false if it is.