mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Bug #5944 - error message when moving thread; merged from MOODLE_16_STABLE
This commit is contained in:
parent
8b23c04a12
commit
895a45e231
@ -85,7 +85,11 @@
|
||||
global $CFG;
|
||||
//return unlink("{$CFG->dataroot}/rss/{$modname}/{$forum->id}.xml");
|
||||
$rssfile = rss_file_name('forum', $forum);
|
||||
return unlink($rssfile);
|
||||
if (file_exists($rssfile)) {
|
||||
return unlink($rssfile);
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user