All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit c688fa35 authored by Leigh B Stoller's avatar Leigh B Stoller

Trying to fix a webtask leak, made it worse.

parent f4f18c91
<?php
#
# Copyright (c) 2000-2018 University of Utah and the Flux Group.
# Copyright (c) 2000-2019 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -472,7 +472,7 @@ if (! isset($create)) {
# the js code to show the status of the clone.
#
$webtask = $profile->webtask();
if ($webtask->TaskValue("cloning")) {
if ($webtask && $webtask->TaskValue("cloning")) {
$notifyclone = 1;
}
}
......
......@@ -163,7 +163,10 @@ class Profile
# with the object, use that. Otherwise create a new one.
function WebTask() {
if ($this->webtask_id()) {
return WebTask::Lookup($this->webtask_id());
$webtask = WebTask::Lookup($this->webtask_id());
if ($webtask) {
return $webtask;
}
}
$webtask = WebTask::LookupByObject($this->uuid());
if (!$webtask) {
......
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