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

Commit

Permalink
Remove the method call from the foreach() loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Oct 5, 2015
1 parent 68840a6 commit cd6abec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/core/classes/class.AJXP_XMLWriter.php
Expand Up @@ -627,7 +627,8 @@ public static function writeRepositoriesData($loggedUser)
AJXP_PluginsService::getInstance()->storeToPluginQueriesCache("//server_settings/param[contains(@scope,'repository') and @expose='true']", $exposed);
}

foreach (ConfService::getAccessibleRepositories($loggedUser, false, false) as $repoId => $repoObject) {
$accessible = ConfService::getAccessibleRepositories($loggedUser, false, false);
foreach ($accessible as $repoId => $repoObject) {
$toLast = false;
if ($repoObject->getAccessType()=="ajxp_conf") {
if(AuthService::usersEnabled() && !$loggedUser->isAdmin())continue;
Expand Down

0 comments on commit cd6abec

Please sign in to comment.