Permalink
Browse files

minor fix: correct handling of acount object

getAccounts returns a VersioncontrolAccount object, not a string anymore from
some commits ago :-p
  • Loading branch information...
1 parent fc20890 commit 0933b300f930023e61e26a0a4a68144323de4b24 @marvil07 committed Jul 11, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 versioncontrol.pages.inc
View
@@ -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
}

0 comments on commit 0933b30

Please sign in to comment.