scheduler: fix crashing bug in keyword scheduling code

This commit is contained in:
David Anderson 2017-07-27 23:36:32 -07:00
parent c5b0e40c03
commit 6144b0aaee
2 changed files with 5 additions and 3 deletions

View File

@ -136,9 +136,9 @@ function ordered_display($areas, $sort) {
if (array_key_exists(5, $p) && $p[5]) {
$img= "<img align=right vspace=4 hspace=4 src=images/$p[5]>";
}
$arg = "$img <b>Sponsor:</b> $p[2]<br><b>Area:</b> $p[3]<br><b>Goal:</b> $p[4]";
$arg = "$img <font size=.8em><b>Goal:</b> $p[4] <br> <b>Sponsor:</b> $p[2]<br><b>Area:</b> $p[3]";
$arg = addslashes($arg);
$x = "<a href=$p[1] onmouseover=\"Tip('$arg', WIDTH, 500)\" onmouseout=\"UnTip()\">$p[0]</a>";
$x = "<a href=$p[1] onmouseover=\"Tip('$arg', WIDTH, 500, FONTSIZE, '12px', BGCOLOR, '#eeddcc')\" onmouseout=\"UnTip()\">$p[0]</a>";
$home = $p[2];
$area = $p['area'];
$spec_area = $p[3];

View File

@ -328,7 +328,9 @@ void send_work_score_type(int rt) {
// (since otherwise feeder might overwrite it)
//
wu_result.state = WR_STATE_EMPTY;
keyword_sched_remove_job(job.index);
if (config.keyword_sched) {
keyword_sched_remove_job(job.index);
}
// reread result from DB, make sure it's still unsent
// TODO: from here to end of add_result_to_reply()