Minor fix

This commit is contained in:
Samuel Georges 2015-02-19 22:17:07 +11:00
parent c7881ff2dc
commit 93f48d87ea
1 changed files with 3 additions and 1 deletions

View File

@ -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')