MDL-27171 messages: recover message_update_providers backward compatibility

'return true' was removed by mistake

Signed-off-by: Ruslan Kabalin <[email protected]>
This commit is contained in:
Ruslan Kabalin
2011-05-31 10:05:39 +01:00
parent e8fc7940a8
commit 31afb0a437
+3 -1
View File
@@ -197,7 +197,7 @@ function message_send($eventdata) {
* This code updates the message_providers table with the current set of providers
*
* @param $component - examples: 'moodle', 'mod_forum', 'block_quiz_results'
* @return void
* @return boolean
*/
function message_update_providers($component='moodle') {
global $DB;
@@ -243,6 +243,8 @@ function message_update_providers($component='moodle') {
foreach ($dbproviders as $dbprovider) { // Delete old ones
$DB->delete_records('message_providers', array('id' => $dbprovider->id));
}
return true;
}
/**