Skip to content

Commit

Permalink
minor fix: correct handling of acount object
Browse files Browse the repository at this point in the history
getAccounts returns a VersioncontrolAccount object, not a string anymore from
some commits ago :-p
  • Loading branch information
marvil07 committed Jul 11, 2009
1 parent fc20890 commit 0933b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion versioncontrol.pages.inc
Expand Up @@ -250,7 +250,7 @@ function versioncontrol_account_page($accounts, $url_repo_id = NULL, $url_userna
$vcs_accounts = array($vcs_account);

foreach ($vcs_accounts as $key => $vcs_account) {
if (isset($url_username) && $vcs_account != $url_username) {
if (isset($url_username) && $vcs_account->vcs_username != $url_username) {
unset($vcs_accounts[$uid][$repo_id]);
continue; // disregard usernames that don't match the URL constraints
}
Expand Down

0 comments on commit 0933b30

Please sign in to comment.