Skip to content
Browse files

MDL-31170 fix automatic blog blocks hiding/unhiding after blog level …

…change
  • Loading branch information...
1 parent f70f6e9 commit fde76de588bc34071072368a23ec3d3ad1d23568 @skodak skodak committed Jan 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/adminlib.php
View
2 lib/adminlib.php
@@ -3051,7 +3051,7 @@ class admin_setting_bloglevel extends admin_setting_configselect {
*/
public function write_setting($data) {
global $DB, $CFG;
- if ($data['bloglevel'] == 0) {
+ if ($data == 0) {
$blogblocks = $DB->get_records_select('block', "name LIKE 'blog_%' AND visible = 1");
foreach ($blogblocks as $block) {
$DB->set_field('block', 'visible', 0, array('id' => $block->id));

0 comments on commit fde76de

Please sign in to comment.
Something went wrong with that request. Please try again.