Bug #5944 - error message when moving thread; merged from MOODLE_16_STABLE

This commit is contained in:
skodak
2006-06-29 08:01:48 +00:00
parent 8b23c04a12
commit 895a45e231
+5 -1
View File
@@ -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;
}
}