mirror of
https://github.com/moodle/moodle.git
synced 2025-03-11 03:15:24 +01:00
MDL-81872 book: Fix coding style
This commit is contained in:
parent
727e167946
commit
dd5a82ede7
@ -143,7 +143,7 @@ function book_reset_userdata($data) {
|
||||
|
||||
if (!empty($data->reset_book_tags)) {
|
||||
// Loop through the books and remove the tags from the chapters.
|
||||
if ($books = $DB->get_records('book', array('course' => $data->courseid))) {
|
||||
if ($books = $DB->get_records('book', ['course' => $data->courseid])) {
|
||||
foreach ($books as $book) {
|
||||
if (!$cm = get_coursemodule_from_instance('book', $book->id)) {
|
||||
continue;
|
||||
@ -154,11 +154,10 @@ function book_reset_userdata($data) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$status[] = [
|
||||
'component' => get_string('modulenameplural', 'book'),
|
||||
'item' => get_string('tagsdeleted', 'book'),
|
||||
'error' => false
|
||||
'error' => false,
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user