Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Performance fix by Matthias Moser - extract replaced by foreach
Browse files Browse the repository at this point in the history
git-svn-id: http://dompdf.googlecode.com/svn/trunk/dompdf@113 8e70de24-3a84-11de-b438-597f59cd7555
  • Loading branch information
Ryan Masten committed May 8, 2009
1 parent 2df4fb9 commit 5ce2756
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/frame.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5ce2756

Please sign in to comment.