Skip to content

Commit

Permalink
Merge pull request #5468 from BOINC/dpa_server_demo2
Browse files Browse the repository at this point in the history
fix some spurious server warning messages
  • Loading branch information
AenBleidd authored Dec 20, 2023
2 parents 1972a3c + 66f34a7 commit 59a5224
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
26 changes: 12 additions & 14 deletions html/user/notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@ function notices_rss_end() {

$notifies = BoincNotify::enum("userid = $userid $since_clause");

$threads = [];
$forum = news_forum();
if ($forum) {
$threads = BoincThread::enum(
"forum = $forum->id and hidden=0 and status=0 $since_clause"
);
}

// there may be a better way to do this

$items = array();
Expand All @@ -88,12 +80,18 @@ function notices_rss_end() {
$items[] = $i;
}

foreach ($threads as $t) {
$i = new StdClass;
$i->type = 1;
$i->time = $t->create_time;
$i->val = $t;
$items[] = $i;
$forum = news_forum();
if ($forum) {
$threads = BoincThread::enum(
"forum = $forum->id and hidden=0 and status=0 $since_clause"
);
foreach ($threads as $t) {
$i = new StdClass;
$i->type = 1;
$i->time = $t->create_time;
$i->val = $t;
$items[] = $i;
}
}

usort($items, 'notice_cmp');
Expand Down
5 changes: 4 additions & 1 deletion sched/file_upload_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,10 @@ int handle_file_upload(FILE* in, R_RSA_PUBLIC_KEY& key) {
found_data = true;
break;
}
log_messages.printf(MSG_WARNING, "unrecognized: %s", buf);
strip_whitespace(buf);
if (strlen(buf)) {
log_messages.printf(MSG_WARNING, "unrecognized: %s", buf);
}
}
if (strlen(name) == 0) {
return return_error(ERR_PERMANENT, "Missing name");
Expand Down

0 comments on commit 59a5224

Please sign in to comment.