Commit 7d0d70eb authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Watch for NULL destroyed/manifest in ReadHistoryRecords() to

avoid warnings from the Frontier library.
parent fcd324ba
......@@ -1359,11 +1359,22 @@ sub ReadHistoryRecords($)
$blob{'creator_urn'} = $row->{'creator_urn'};
$blob{'creator_uuid'} = $row->{'creator_uuid'};
$blob{'created'} = $row->{'created'};
$blob{'destroyed'} = $row->{'destroyed'};
$blob{'manifest'} = $row->{'manifest'};
if (defined($row->{'destroyed'})) {
$blob{'destroyed'}= $row->{'destroyed'};
}
else {
$blob{'destroyed'}= '';
}
if (defined($row->{'manifest'})) {
$blob{'manifest'} = $row->{'manifest'};
}
else {
$blob{'manifest'} = "";
}
push(@results, \%blob);
}
# Slow down the GMOC queries.
sleep(10);
return GeniResponse->Create(GENIRESPONSE_SUCCESS, \@results);
}
......
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