We are only formatting an object when it's not null
This commit is contained in:
parent
4b3af9dfe7
commit
dad98542a5
|
@ -321,7 +321,8 @@ class ActivityManager implements IManager {
|
|||
* @return bool
|
||||
*/
|
||||
public function isFormattingFilteredObject() {
|
||||
return $this->formattingObjectType === $this->request->getParam('object_type')
|
||||
return $this->formattingObjectType !== null && $this->formattingObjectId !== null
|
||||
&& $this->formattingObjectType === $this->request->getParam('object_type')
|
||||
&& $this->formattingObjectId === $this->request->getParam('object_id');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue