Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
460ab53
)
MDL-31616 blocks: ensure showinsubcontexts is only 0 or 1 in the DB.
author
Tim Hunt
<T.J.Hunt@open.ac.uk>
Wed, 16 Jan 2013 12:38:04 +0000
(12:38 +0000)
committer
Eloy Lafuente (stronk7)
<stronk7@moodle.org>
Wed, 16 Jan 2013 18:16:09 +0000
(19:16 +0100)
lib/blocklib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/blocklib.php
b/lib/blocklib.php
index
682fae1
..
5066ae5
100644
(file)
--- a/
lib/blocklib.php
+++ b/
lib/blocklib.php
@@
-1294,7
+1294,7
@@
class block_manager {
// 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 {