mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'wip-MDL-56635-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
commit
6ab10c3d77
@ -184,7 +184,7 @@ class tag_cron_task extends scheduled_task {
|
||||
$sql = "SELECT DISTINCT component, itemtype
|
||||
FROM {tag_instance}
|
||||
WHERE itemtype <> 'user' or component <> 'core'";
|
||||
$tagareas = $DB->get_records_sql($sql);
|
||||
$tagareas = $DB->get_recordset_sql($sql);
|
||||
foreach ($tagareas as $tagarea) {
|
||||
$sql = 'SELECT ti.id
|
||||
FROM {tag_instance} ti
|
||||
@ -196,6 +196,7 @@ class tag_cron_task extends scheduled_task {
|
||||
$tagarray[] = $tagid->id;
|
||||
}
|
||||
}
|
||||
$tagareas->close();
|
||||
|
||||
// Get instances for each of the ids to be deleted.
|
||||
if (count($tagarray) > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user