From 13811524e397828c16abb839d4ac81f990d24cea Mon Sep 17 00:00:00 2001 From: nbm Date: Fri, 14 Jan 2005 10:16:52 +0000 Subject: [PATCH] foreach returns copies of objects, not the objects themselves, so work around this. --- lib/browse/Browser.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/browse/Browser.inc b/lib/browse/Browser.inc index b400480..1ef2112 100644 --- a/lib/browse/Browser.inc +++ b/lib/browse/Browser.inc @@ -136,7 +136,8 @@ class Browser { function setOptions($aOptions) { $this->aOptions = array_merge($this->aOptions, $aOptions); - foreach (array_values($this->aSortCriteria) as $oCriteria) { + foreach (array_keys($this->aSortCriteria) as $sKey) { + $oCriteria =& $this->aSortCriteria[$sKey]; $oCriteria->setOptions($aOptions); } } -- libgit2 0.21.4