summaryrefslogtreecommitdiffstats
path: root/apps/comments/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-25 22:20:10 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-25 22:20:10 +0100
commit7800a9bc24d50d3eed40f8b1d40236a262b4f8ef (patch)
tree8d439d4743df537769ea2bfd97ffa42a9041ceec /apps/comments/lib
parentb9bbb894f8b01e000bb5e3a8a82db7bebad3ea00 (diff)
downloadnextcloud-server-7800a9bc24d50d3eed40f8b1d40236a262b4f8ef.tar.gz
nextcloud-server-7800a9bc24d50d3eed40f8b1d40236a262b4f8ef.zip
Fix array method usages with a proper call
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/comments/lib')
-rw-r--r--apps/comments/lib/Activity/Listener.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/comments/lib/Activity/Listener.php b/apps/comments/lib/Activity/Listener.php
index 76af565cf15..1dec28c8250 100644
--- a/apps/comments/lib/Activity/Listener.php
+++ b/apps/comments/lib/Activity/Listener.php
@@ -77,7 +77,7 @@ class Listener {
*/
public function commentEvent(CommentsEvent $event) {
if ($event->getComment()->getObjectType() !== 'files'
- || !in_array($event->getEvent(), [CommentsEvent::EVENT_ADD])
+ || $event->getEvent() !== CommentsEvent::EVENT_ADD
|| !$this->appManager->isInstalled('activity')) {
// Comment not for file, not adding a comment or no activity-app enabled (save the energy)
return;