Browse Source

Fix #155 properly. Undo regression caused by moving $statuses definition.

MOODLE_28_STABLE
Barry Oosthuizen 9 years ago
parent
commit
7302a019ce
  1. 2
      preferences.php

2
preferences.php

@ -94,9 +94,9 @@ switch ($att->pageparams->action) {
echo $OUTPUT->footer(); echo $OUTPUT->footer();
exit; exit;
case att_preferences_page_params::ACTION_HIDE: case att_preferences_page_params::ACTION_HIDE:
$statuses = $att->get_statuses(false);
$status = $statuses[$att->pageparams->statusid]; $status = $statuses[$att->pageparams->statusid];
$att->update_status($status, null, null, null, 0); $att->update_status($status, null, null, null, 0);
$statuses = $att->get_statuses(false);
break; break;
case att_preferences_page_params::ACTION_SHOW: case att_preferences_page_params::ACTION_SHOW:
$statuses = $att->get_statuses(false); $statuses = $att->get_statuses(false);

Loading…
Cancel
Save