Skip to content

Commit 98b89e5

Browse files
authored
Merge pull request #5924 from BOINC/dpa_web12
web: fix two undefined var bugs
2 parents dc3597d + 07ee065 commit 98b89e5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

html/user/forum_forum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function forum_page($forum, $user, $msg=null) {
109109
if (is_subscribed(-$forum->id, $subs)) {
110110
BoincNotify::delete_aux(sprintf(
111111
'userid=%d and type=%d and opaque=%d',
112-
$logged_in_user->id,
112+
$user->id,
113113
NOTIFY_SUBSCRIBED_FORUM,
114114
$forum->id
115115
));

html/user/submit.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ function handle_admin($user) {
284284
if (!$user_submit) error_page('no access');
285285
page_head("Administer job submission");
286286
if ($user_submit->manage_all) {
287+
// user can administer all apps
288+
//
287289
echo "<li>All applications<br>
288290
<ul>
289291
<li> <a href=submit.php?action=admin_all>View all batches</a>
@@ -303,6 +305,9 @@ function handle_admin($user) {
303305
";
304306
}
305307
} else {
308+
// see if user can administer specific apps
309+
//
310+
$usas = BoincUserSubmitApp::enum("user_id=$user->id");
306311
foreach ($usas as $usa) {
307312
$app = BoincApp::lookup_id($usa->app_id);
308313
echo "<li>$app->user_friendly_name<br>

0 commit comments

Comments
 (0)