forked from GNUsocial/gnu-social
Make sure something's an int before comparing to -1
This commit is contained in:
@@ -56,7 +56,7 @@ class Profile extends Memcached_DataObject
|
||||
|
||||
function getUser()
|
||||
{
|
||||
if ($this->_user == -1) {
|
||||
if (is_int($this->_user) && $this->_user == -1) {
|
||||
$this->_user = User::staticGet('id', $this->id);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user