diff options
Diffstat (limited to 'app/Models')
| -rw-r--r-- | app/Models/Category.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/Models/Category.php b/app/Models/Category.php index 221e8644d..e883a99cf 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -162,11 +162,14 @@ class FreshRSS_Category extends Minz_Model { if ($this->feeds === null) { $this->feeds = []; } - if ($feed->id() !== 0) { - $feed->_category($this); + $feed->_category($this); + if ($feed->id() === 0) { + // Feeds created on a dry run do not have an ID + $this->feeds[] = $feed; + } else { $this->feeds[$feed->id()] = $feed; - $this->sortFeeds(); } + $this->sortFeeds(); } /** |
