Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit e4863a1668409064580e2ac15ef86203cc600c30 1 parent 9044bc2
@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.