Commit d168d996985140649e6e7b0b182b8ffd7e8a9383

Authored by Neil Blakey-Milner
1 parent 1f94507c

foreach returns copies of objects, not the objects themselves, so work

around this.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3172 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 2 additions and 1 deletions
lib/browse/Browser.inc
... ... @@ -136,7 +136,8 @@ class Browser {
136 136  
137 137 function setOptions($aOptions) {
138 138 $this->aOptions = array_merge($this->aOptions, $aOptions);
139   - foreach (array_values($this->aSortCriteria) as $oCriteria) {
  139 + foreach (array_keys($this->aSortCriteria) as $sKey) {
  140 + $oCriteria =& $this->aSortCriteria[$sKey];
140 141 $oCriteria->setOptions($aOptions);
141 142 }
142 143 }
... ...