Skip to content

Commit

Permalink
Update edit.php
Browse files Browse the repository at this point in the history
Added missing character.
  • Loading branch information
drachels committed Apr 26, 2021
1 parent f23bee7 commit 418d160
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
$data->text = '';
$data->textformat = FORMAT_HTML;
} else {
throw new moodle_exception(get_string('generalerror', 'diary');
throw new moodle_exception(get_string('generalerror', 'diary'));
}

$data->id = $cm->id;
Expand Down Expand Up @@ -160,13 +160,13 @@
if ($fromform->entryid) {
$newentry->id = $fromform->entryid;
if (! $DB->update_record("diary_entries", $newentry)) {
throw new moodle_exception('generalerrorupdate', 'diary');
throw new moodle_exception(get_string('generalerrorupdate', 'diary'));
}
} else {
$newentry->userid = $USER->id;
$newentry->diary = $diary->id;
if (! $newentry->id = $DB->insert_record("diary_entries", $newentry)) {
throw new moodle_exception('generalerrorinsert', 'diary');
throw new moodle_exception(get_string('generalerrorinsert', 'diary'));
}
}

Expand Down

0 comments on commit 418d160

Please sign in to comment.