Bug #5944 - error message when moving thread

This commit is contained in:
skodak
2006-06-29 08:00:48 +00:00
parent 4314bcdd89
commit ce72ff9018
+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;
}
}