Permalink
Browse files

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

…change
  • Loading branch information...
1 parent d471e3f commit 42add67bec840046a7a940a4b8f57cab3bbb2e62 @skodak skodak committed with stronk7 Jan 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/adminlib.php
View
@@ -3027,7 +3027,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 42add67

Please sign in to comment.