Skip to content
GitLab
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
3383e882
Commit
3383e882
authored
Dec 03, 2014
by
Leigh B Stoller
Browse files
Fix warning.
parent
26f89fa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/aptui/instance_defs.php
View file @
3383e882
...
...
@@ -163,8 +163,10 @@ class Instance
# With a real user, run as that user.
#
$uid
=
(
$creator
?
$creator
->
uid
()
:
"nobody"
);
$pid
=
(
$creator
?
$creator
->
FirstApprovedProject
()
->
pid
()
:
"nobody"
);
$pid
=
"nobody"
;
if
(
$creator
&&
$creator
->
FirstApprovedProject
())
{
$pid
=
$creator
->
FirstApprovedProject
()
->
pid
();
}
if
(
isset
(
$_SERVER
[
'REMOTE_ADDR'
]))
{
putenv
(
"REMOTE_ADDR="
.
$_SERVER
[
'REMOTE_ADDR'
]);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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