diff --git a/include/frame.cls.php b/include/frame.cls.php index 724d00065..b7fc72832 100644 --- a/include/frame.cls.php +++ b/include/frame.cls.php @@ -370,8 +370,11 @@ function set_decorator(Frame_Decorator $decorator) { } function set_containing_block($x = null, $y = null, $w = null, $h = null) { - if ( is_array($x) ) - extract($x); + if ( is_array($x) ){ + foreach($x AS $key => $val){ + $$key = $val; + } + } if (is_numeric($x)) { $this->_containing_block[0] = $x;