mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
Booleans are not always transformed to 0 /1. This was preventing install
under mysqli. Define block->multiple if needed. Merged from MOODLE_19_STABLE
This commit is contained in:
parent
df7cb97973
commit
04c2d0db9d
@ -1319,7 +1319,9 @@ function upgrade_blocks_plugins($continueto) {
|
||||
} else { // block not installed yet, so install it
|
||||
|
||||
// If it allows multiples, start with it enabled
|
||||
$block->multiple = $blockobj->instance_allow_multiple();
|
||||
if ($blockobj->instance_allow_multiple()) {
|
||||
$block->multiple = 1;
|
||||
}
|
||||
|
||||
// Set the block cron on install
|
||||
$block->cron = !empty($blockobj->cron) ? $blockobj->cron : 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user