We are only formatting an object when it's not null

This commit is contained in:
Joas Schilling 2016-03-24 09:32:11 +01:00
parent 4b3af9dfe7
commit dad98542a5
1 changed files with 2 additions and 1 deletions

View File

@ -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');
}