From 38137c5960529b5426143c31b5ea3bfc4c6844f9 Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 25 Apr 2022 17:23:12 +0800 Subject: [PATCH] * Fix bug #21992. --- module/story/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index 9cae0c63fd..2112090ccf 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -253,7 +253,8 @@ class storyModel extends model { $storyID = $this->dao->lastInsertID(); - if($story->parent) + /* Fix bug #21992, user story have no parent story. */ + if(isset($story->parent) and $story->parent) { $stories = array($storyID); $this->subdivide($story->parent, $stories);