diff --git a/src/Application/UI/PresenterComponent.php b/src/Application/UI/PresenterComponent.php index 14f8c6f50..23695c157 100644 --- a/src/Application/UI/PresenterComponent.php +++ b/src/Application/UI/PresenterComponent.php @@ -145,9 +145,9 @@ public function loadState(array $params) if (!$reflection->convertType($params[$name], $type)) { throw new Nette\Application\BadRequestException("Invalid value for persistent parameter '$name' in '{$this->getName()}', expected " . ($type === 'NULL' ? 'scalar' : $type) . "."); } - $this->$name = & $params[$name]; + $this->$name = $params[$name]; } else { - $params[$name] = & $this->$name; + $params[$name] = $this->$name; } } $this->params = $params;