From 1587164fe816ab8cd69d35d1eb8f4ebefba97315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Burnichon?= Date: Mon, 14 Mar 2016 17:28:42 +0100 Subject: [PATCH] SubdefGroup is not array accessible. Should use hasser to check whether a group exists or not. --- lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php b/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php index 8dc57a8cb8..cd22dc8740 100644 --- a/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php +++ b/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php @@ -68,7 +68,7 @@ class ToolsController extends Controller continue; } $label = $this->app->trans('prod::tools: document'); - } elseif (isset($databoxSubdefs[$subdefName])) { + } elseif ($databoxSubdefs->hasSubdef($subdefName)) { if (!$acl->has_access_to_subdef($record, $subdefName)) { continue; }