Permalink
Browse files

MDL-27171 messages: fix bug in upgrade_populate_default_messaging_prefs

isset check assumed that $defaultpreferences is the object

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
  • Loading branch information...
1 parent afed8d0 commit d004c4b20a57d7c5de8ca5ffc7f7629615a86ebd Ruslan Kabalin committed Jun 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/db/upgradelib.php
@@ -655,7 +655,7 @@ function upgrade_populate_default_messaging_prefs() {
$providers = $DB->get_records('message_providers');
$processors = $DB->get_records('message_processors');
- $defaultpreferences = $DB->get_records_menu('config_plugins', array('plugin'=>'message'), '', 'name,value');
+ $defaultpreferences = (object)$DB->get_records_menu('config_plugins', array('plugin'=>'message'), '', 'name,value');
$transaction = $DB->start_delegated_transaction();

0 comments on commit d004c4b

Please sign in to comment.