From 03d3884bf4a4d8f7e1aa5d046cbfa7f045c207e8 Mon Sep 17 00:00:00 2001 From: yuri Date: Fri, 28 Aug 2015 15:50:09 +0300 Subject: [PATCH] follow fix --- application/Espo/Services/Stream.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/Espo/Services/Stream.php b/application/Espo/Services/Stream.php index ecf7f099d3..033745907c 100644 --- a/application/Espo/Services/Stream.php +++ b/application/Espo/Services/Stream.php @@ -215,7 +215,7 @@ class Stream extends \Espo\Core\Services\Base return; } if (!$this->getMetadata()->get('scopes.' . $entity->getEntityName() . '.stream')) { - throw new Error(); + return false; } $pdo = $this->getEntityManager()->getPDO(); @@ -235,7 +235,7 @@ class Stream extends \Espo\Core\Services\Base public function unfollowEntity(Entity $entity, $userId) { if (!$this->getMetadata()->get('scopes.' . $entity->getEntityName() . '.stream')) { - throw new Error(); + return false; } $pdo = $this->getEntityManager()->getPDO();