initialised variables

This commit is contained in:
Petr Skoda 2010-09-17 11:19:09 +00:00
parent d86b7d5a66
commit d2a8163d07
2 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,7 @@ class community_hub_search_form extends moodleform {
//Public hub list
$options = array();
$brtag = html_writer::empty_tag('br');
$firsthub = false;
foreach ($hubs as $hub) {
if (key_exists('id', $hub)) {
$params = array('hubid' => $hub['id'],

View File

@ -101,6 +101,7 @@ class block_community_manager {
fclose($fp);
$fs = get_file_storage();
$record = new object();
$record->contextid = get_context_instance(CONTEXT_USER, $USER->id)->id;
$record->component = 'user';
$record->filearea = 'private';