MDL-71062 core: Step 1 deprecation of print_error function
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user