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
980015b9
Commit
980015b9
authored
Jul 08, 2014
by
Leigh B Stoller
Browse files
Its perl, not PHP! Other minor bug fixes.
parent
ec664cd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/WebTask.pm.in
View file @
980015b9
...
...
@@ -213,8 +213,10 @@ sub Refresh($)
#
Turn
the
data
into
a
perl
array
so
we
can
mess
with
it
.
#
$
self
->{
'DATA'
}
=
{};
if
(
isset
($
self
->
task_data
())
&&
$
self
->
task_data
())
{
$
self
->{
'DATA'
}
=
eval
{
decode_json
($
self
->
task_data
());
};
if
(
defined
($
self
->{
'DBROW'
}->{
'task_data'
})
&&
$
self
->{
'DBROW'
}->{
'task_data'
}
ne
""
)
{
$
self
->{
'DATA'
}
=
eval
{
decode_json
($
self
->{
'DBROW'
}->{
'task_data'
});
};
if
($@)
{
print
STDERR
"Could not json decode task data
\n
"
;
return
-
1
;
...
...
@@ -231,9 +233,8 @@ sub Stringify($)
my
($
self
)
=
@
_
;
my
$
id
=
$
self
->
task_id
();
my
$
uuid
=
$
self
->
uuid
();
return
"[WebTask: $id
: $uuid
]"
;
return
"[WebTask: $id]"
;
}
#
Debugging
.
...
...
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