diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-09-06 14:08:01 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-09-09 22:56:05 +0200 |
commit | 687edb4bc80cc5cda3663997d23a319d7ea15925 (patch) | |
tree | 069d9144388498ef4ae679049cda8affcab39817 /apps/workflowengine/lib | |
parent | 32279ed062b92e58c45cc87d0ecab41075cad3dc (diff) | |
download | nextcloud-server-687edb4bc80cc5cda3663997d23a319d7ea15925.tar.gz nextcloud-server-687edb4bc80cc5cda3663997d23a319d7ea15925.zip |
No need to get the class since the entity is already the class string
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/workflowengine/lib')
-rw-r--r-- | apps/workflowengine/lib/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Manager.php b/apps/workflowengine/lib/Manager.php index a0dda9cb6bc..2e78b75aeb8 100644 --- a/apps/workflowengine/lib/Manager.php +++ b/apps/workflowengine/lib/Manager.php @@ -523,7 +523,7 @@ class Manager implements IManager, IEntityAware { } if (!empty($instance->supportedEntities()) - && !in_array(get_class($entity), $instance->supportedEntities()) + && !in_array($entity, $instance->supportedEntities()) ) { throw new \UnexpectedValueException($this->l->t('Check %s is not allowed with this entity', [$class])); } |