Skip to content

Commit 474589e

Browse files
authored
Merge pull request #6389 from BOINC/dpa_web32
web: fix a couple of PHP warnings
2 parents f8da826 + e7bebbe commit 474589e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

html/user/forum_forum.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,11 @@ function show_forum_threads($forum, $start, $sort_style, $user, $subs) {
272272
$action = get_str('action', true);
273273

274274
if ($action == 'subscribe') {
275+
$user = get_logged_in_user();
275276
BoincSubscription::replace($user->id, -$id);
276277
forum_page($forum, $user, 'You are now subscribed to this forum.');
277278
} else if ($action == 'unsubscribe') {
279+
$user = get_logged_in_user();
278280
BoincSubscription::delete($user->id, -$id);
279281
forum_page($forum, $user, 'You are now unsubscribed from this forum.');
280282
} else {

html/user/weak_auth.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
// strip http://
2929
//
30+
$master_url = master_url();
3031
$idx = strpos($master_url, '://');
3132
if ($idx) {
3233
$url = substr($master_url, $idx+strlen('://'));

0 commit comments

Comments
 (0)