Permalink
Browse files

Bug #5944 - error message when moving thread

  • Loading branch information...
1 parent 4314bcd commit ce72ff9018929bc1850d24ddd37afc1421dcd925 skodak committed Jun 29, 2006
Showing with 5 additions and 1 deletion.
  1. +5 −1 mod/forum/rsslib.php
View
6 mod/forum/rsslib.php
@@ -85,7 +85,11 @@ function forum_rss_delete_file($forum) {
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;
+ }
}

0 comments on commit ce72ff9

Please sign in to comment.