mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
fixed phpdocs and incorrect exception names
This commit is contained in:
parent
08b4939be9
commit
8a680500c6
3 changed files with 5 additions and 5 deletions
|
@ -614,7 +614,7 @@ class file_storage {
|
|||
|
||||
try {
|
||||
$newrecord->id = $DB->insert_record('files', $newrecord);
|
||||
} catch (database_exception $e) {
|
||||
} catch (dml_exception $e) {
|
||||
$newrecord->id = false;
|
||||
}
|
||||
|
||||
|
@ -758,7 +758,7 @@ class file_storage {
|
|||
|
||||
try {
|
||||
$newrecord->id = $DB->insert_record('files', $newrecord);
|
||||
} catch (database_exception $e) {
|
||||
} catch (dml_exception $e) {
|
||||
$newrecord->id = false;
|
||||
}
|
||||
|
||||
|
@ -851,7 +851,7 @@ class file_storage {
|
|||
|
||||
try {
|
||||
$newrecord->id = $DB->insert_record('files', $newrecord);
|
||||
} catch (database_exception $e) {
|
||||
} catch (dml_exception $e) {
|
||||
$newrecord->id = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue