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