Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
87d6dc2e
Commit
87d6dc2e
authored
Feb 03, 2016
by
Leigh B Stoller
Browse files
Fix for when the profile an instance was created from, has been
deleted. I guess we should not allow users to do this, eh?
parent
f6538c5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/aptui/show-dataset.php
View file @
87d6dc2e
<?php
#
# Copyright (c) 2000-201
5
University of Utah and the Flux Group.
# Copyright (c) 2000-201
6
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -147,8 +147,10 @@ if ($cansnapshot && !$embedded) {
$instance
=
Instance
::
Lookup
(
$row
[
"uuid"
]);
$profile
=
Profile
::
Lookup
(
$instance
->
profile_id
(),
$instance
->
profile_version
());
$instance_array
[]
=
array
(
"uuid"
=>
$instance
->
uuid
(),
"name"
=>
$profile
->
name
());
if
(
$instance
&&
$profile
)
{
$instance_array
[]
=
array
(
"uuid"
=>
$instance
->
uuid
(),
"name"
=>
$profile
->
name
());
}
}
echo
"<script type='text/plain' id='instances-json'>
\n
"
;
echo
htmlentities
(
json_encode
(
$instance_array
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment