Commit 13811524e397828c16abb839d4ac81f990d24cea

Authored by nbm
1 parent 79cd7fdf

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 }
... ...