Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-31616 blocks: ensure showinsubcontexts is only 0 or 1 in the DB.

  • Loading branch information...
commit 67cc80197f0c18a8e2ad0f79f3ad885249b12ee6 1 parent 460ab53
@timhunt timhunt authored stronk7 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/blocklib.php
View
2  lib/blocklib.php
@@ -1294,7 +1294,7 @@ public function process_url_edit() {
// This may get overwritten by the special case handling below.
$bi->pagetypepattern = $data->bui_pagetypepattern;
- $bi->showinsubcontexts = $data->bui_contexts;
+ $bi->showinsubcontexts = (bool) $data->bui_contexts;
if (empty($data->bui_subpagepattern) || $data->bui_subpagepattern == '%@NULL@%') {
$bi->subpagepattern = null;
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.