Permalink
Browse files

minor: avoid warning on adding fake repo

  • Loading branch information...
1 parent 1a7e767 commit 197ada8e233e5003ebce39f496b6db91c4755d29 @marvil07 committed Oct 13, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 versioncontrol_fakevcs/versioncontrol_fakevcs.admin.inc
@@ -31,7 +31,7 @@ function versioncontrol_fakevcs_form_alter(&$form, $form_state, $form_id) {
* Add CVS specific elements to the add/edit repository form.
*/
function versioncontrol_fakevcs_repository_admin_form_alter(&$form, $form_state, $form_id) {
- $repository = $form['#repository'];
+ $repository = isset($form['#repository'])? $form['#repository']: null;
$form['#versioncontrol_fakevcs'] = TRUE;

0 comments on commit 197ada8

Please sign in to comment.