From 6d26d4a972dc0dbb949d7d61d5994bbdf01a9cec Mon Sep 17 00:00:00 2001 From: Barry Oosthuizen Date: Fri, 2 Oct 2015 15:17:22 +0100 Subject: [PATCH] Fix #155 properly. Undo regression caused by moving $statuses definition. --- preferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preferences.php b/preferences.php index 05a07d9..9ff43a1 100644 --- a/preferences.php +++ b/preferences.php @@ -83,9 +83,9 @@ switch ($att->pageparams->action) { echo $OUTPUT->footer(); exit; case att_preferences_page_params::ACTION_HIDE: + $statuses = $att->get_statuses(false); $status = $statuses[$att->pageparams->statusid]; $att->update_status($status, null, null, null, 0); - $statuses = $att->get_statuses(false); break; case att_preferences_page_params::ACTION_SHOW: $statuses = $att->get_statuses(false);