MDL-71062 core: Step 1 deprecation of print_error function

This commit is contained in:
Sujith Haridasan
2022-07-13 08:20:54 +05:30
parent a23f0bff3e
commit 73d604369d
506 changed files with 1511 additions and 1488 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ abstract class data_object {
if ($instances = self::fetch_all_helper($table, $classname, $params)) {
if (count($instances) > 1) {
// we should not tolerate any errors here - problems might appear later
print_error('morethanonerecordinfetch','debug');
throw new \moodle_exception('morethanonerecordinfetch', 'debug');
}
return reset($instances);
} else {