Skip to content

Commit

Permalink
Merge branch 'w03_MDL-31170_m23_blogblocks' of git://github.com/skoda…
Browse files Browse the repository at this point in the history
…k/moodle
  • Loading branch information
stronk7 committed Jan 16, 2012
2 parents 325f3ad + 00b9c58 commit 479932c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adminlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 479932c

Please sign in to comment.