diff --git a/src/Pluf/Template/ContextVars.php b/src/Pluf/Template/ContextVars.php index af56e38..c5cd106 100644 --- a/src/Pluf/Template/ContextVars.php +++ b/src/Pluf/Template/ContextVars.php @@ -28,10 +28,11 @@ class Pluf_Template_ContextVars extends ArrayObject { function offsetGet($prop) { - if (!$this->offsetExists($prop)) { + try { + return parent::offsetGet($prop); + } catch (Exception $e) { return ''; } - return parent::offsetGet($prop); } function __get($prop)