From e8c5bf0f872268ad0b4eff0c14c7cda8798c4c16 Mon Sep 17 00:00:00 2001
From: Marco Antonio Villegas Vega <marvil07@gmail.com>
Date: Wed, 1 Jul 2009 22:22:18 -0500
Subject: [PATCH] avoid a notice at versioncontrol/register page

avoid calling an unset variable, $first_repo_id, when there are not repositories
---
 versioncontrol.pages.inc |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/versioncontrol.pages.inc b/versioncontrol.pages.inc
index 1c4fbfc..fbc6cca 100644
--- a/versioncontrol.pages.inc
+++ b/versioncontrol.pages.inc
@@ -116,6 +116,11 @@ function versioncontrol_account_register_page($register_uid = FALSE, $register_a
     }
   }
 
+  if (!isset($first_repo_id)) {
+    // when there are no repos, this var is not set
+    $first_repo_id = NULL;
+  }
+
   return drupal_get_form('versioncontrol_account_register_form',
     $register_uid, $repository_names, $first_repo_id
   );
-- 
1.5.6.5

