Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix error in array_merge messing up with numeric keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 9, 2014
1 parent c6e9f37 commit 41a8db6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/core/classes/class.ConfService.php
Expand Up @@ -560,7 +560,7 @@ protected function initRepositoriesListInst($scope = "user")
continue;
}
$repo->setWriteable(false);
$objList[$repo->getId()] = $repo;
$objList["".$repo->getId()] = $repo;
}
// LOAD FROM DRIVER
$confDriver = self::getConfStorageImpl();
Expand Down Expand Up @@ -590,7 +590,9 @@ protected function initRepositoriesListInst($scope = "user")
$drvList[$repoId] = $repoObject;
}
}
$objList = array_merge($objList, $drvList);
foreach($drvList as $key => $value){
$objList[$key] = $value;
}
}
return $objList;
}
Expand Down

0 comments on commit 41a8db6

Please sign in to comment.