From 93f48d87eac2fdf490efbf086a9d5e24b1b80c23 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Thu, 19 Feb 2015 22:17:07 +1100 Subject: [PATCH] Minor fix --- modules/backend/behaviors/RelationController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/backend/behaviors/RelationController.php b/modules/backend/behaviors/RelationController.php index 91748cc61..1808c1d3a 100644 --- a/modules/backend/behaviors/RelationController.php +++ b/modules/backend/behaviors/RelationController.php @@ -1031,7 +1031,9 @@ class RelationController extends ControllerBehavior /* * Determine supplied form context */ - if ($context = array_get($this->config->manage, 'context')) { + $manageConfig = isset($this->config->manage) ? $this->config->manage : []; + + if ($context = array_get($manageConfig, 'context')) { if (is_array($context)) { $context = $this->manageId ? array_get($context, 'update')