MDL-52292 testing: block generator fix

Stop errors when no $options supplied
This commit is contained in:
Dan Poltawski
2015-12-03 11:57:03 +01:00
committed by Eloy Lafuente (stronk7)
parent 4211ec36a5
commit 89349cd5a7
+1 -1
View File
@@ -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);
}