diff --git a/notes/delete.php b/notes/delete.php
index a0991cddb8f..0ffe0ec7fc8 100644
--- a/notes/delete.php
+++ b/notes/delete.php
@@ -48,4 +48,5 @@ if (data_submitted() && confirm_sesskey()) {
echo '
';
note_print($note, NOTES_SHOW_BODY | NOTES_SHOW_HEAD);
print_footer();
-}
\ No newline at end of file
+}
+?>
\ No newline at end of file
diff --git a/notes/edit_form.php b/notes/edit_form.php
index 3a3b9a88598..ef39288f2e9 100644
--- a/notes/edit_form.php
+++ b/notes/edit_form.php
@@ -32,3 +32,4 @@ class note_edit_form extends moodleform {
$mform->setType('note', PARAM_INT);
}
}
+?>
\ No newline at end of file
diff --git a/notes/lib.php b/notes/lib.php
index 9d5a8877265..ca9a372ec83 100644
--- a/notes/lib.php
+++ b/notes/lib.php
@@ -33,7 +33,7 @@ define('NOTES_SHOW_FOOT', 0x04);
*/
function note_list($courseid=0, $userid=0, $state = '', $author = 0, $order='lastmodified DESC', $limitfrom=0, $limitnum=0) {
// setup filters
- $select = array();
+ $selects = array();
if($courseid) {
$selects[] = 'courseid=' . $courseid;
}
diff --git a/user/addnote.php b/user/addnote.php
index 587e83d7b7b..3e51c22e9ad 100644
--- a/user/addnote.php
+++ b/user/addnote.php
@@ -85,3 +85,4 @@ foreach ($users as $k => $v) {
print_table($table);
echo '