From ce72ff9018929bc1850d24ddd37afc1421dcd925 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 29 Jun 2006 08:00:48 +0000 Subject: [PATCH] Bug #5944 - error message when moving thread --- mod/forum/rsslib.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/forum/rsslib.php b/mod/forum/rsslib.php index fa3b26fd977..ce2855a91ac 100644 --- a/mod/forum/rsslib.php +++ b/mod/forum/rsslib.php @@ -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; + } }