From: Michael M Slusarz Date: Wed, 21 Jan 2009 22:58:00 +0000 (-0700) Subject: Fix variable scoping error. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=10dd8da75457be2ceaaec63264da04c173401774;p=horde.git Fix variable scoping error. --- diff --git a/chora/history.php b/chora/history.php index dd5e0b0d9..bb2b2aea1 100644 --- a/chora/history.php +++ b/chora/history.php @@ -80,7 +80,7 @@ foreach ($branches as $brrev => $brcont) { * Calling this function on every revision of the trunk is enough to * render out the whole tree. */ -function populateGrid($row, $col) +function _populateGrid($row, $col, $rev_ob) { global $grid, $branches; @@ -134,7 +134,7 @@ function populateGrid($row, $col) /* For each value just set, check for sub-branches, - but * in reverse (VERY IMPORTANT!). */ for ($i = $numRows - 1; $i >= 0 ; --$i) { - populateGrid(1+$i+$row, $insCol); + _populateGrid(1 + $i + $row, $insCol, $rev_ob); } } } @@ -146,7 +146,7 @@ function populateGrid($row, $col) * populating the grid with branch revisions. */ for ($row = sizeof($trunk) - 1; $row >= 0; $row--) { $grid[$row][0] = $trunk[$row]; - populateGrid($row, 0); + _populateGrid($row, 0, $rev_ob); } /* Sort the grid array into row order, and determine the maximum