From: Gunnar Wrobel
Date: Mon, 22 Jun 2009 18:33:37 +0000 (+0200) Subject: Fix setting variables. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=97c4ba89ec1322242a81363aa7c5e82400323f8f;p=horde.git Fix setting variables. --- diff --git a/koward/lib/Koward/Controller/ObjectController.php b/koward/lib/Koward/Controller/ObjectController.php index 0ad0e086f..463c407e6 100644 --- a/koward/lib/Koward/Controller/ObjectController.php +++ b/koward/lib/Koward/Controller/ObjectController.php @@ -276,8 +276,8 @@ class ObjectController extends Koward_Controller_Application $this->vars = Horde_Variables::getDefaultVariables(); foreach ($this->params as $key => $value) { if (!$this->vars->exists($key)) { - if (is_array($value) && count($value) == 1) { - $this->vars->set($key, $value[0]); + if ($key != 'object' && is_array($value) && count($value) == 1) { + $this->vars->set($key, array_pop($value)); } else { $this->vars->set($key, $value); }