Commit 4f28fc77 authored by Leigh Stoller's avatar Leigh Stoller

Minor fixes for join project in the URL.

parent f0bea4de
<?php
#
# Copyright (c) 2000-2017 University of Utah and the Flux Group.
# Copyright (c) 2000-2018 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -149,8 +149,16 @@ if (! isset($create)) {
$errors = array();
# Default to start
$defaults["startorjoin"] = "start";
$joinproject = 0;
if (!isset($joinproject)) {
$joinproject = 0;
$defaults["startorjoin"] = "start";
}
elseif ($joinproject) {
$defaults["startorjoin"] = "join";
}
else {
$defaults["startorjoin"] = "start";
}
if ($this_user && $promoting) {
$defaults["uid"] = $this_user->uid();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment