MDL-52292 testing: block generator fix
Stop errors when no $options supplied
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
4211ec36a5
commit
89349cd5a7
@@ -459,7 +459,7 @@ EOD;
|
||||
* @param array $options further, block-specific options to control how the block is created.
|
||||
* @return stdClass new block_instance record.
|
||||
*/
|
||||
public function create_block($blockname, $record=null, array $options=null) {
|
||||
public function create_block($blockname, $record=null, array $options=array()) {
|
||||
$generator = $this->get_plugin_generator('block_'.$blockname);
|
||||
return $generator->create_instance($record, $options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user