* Code for php version bug.

This commit is contained in:
Yagami
2023-02-06 13:24:02 +08:00
parent 9b2050098d
commit 33fc8fd620
+4 -2
View File
@@ -910,8 +910,10 @@ class storyModel extends model
if(!empty($_POST['plan'])) $storyPlan = is_array($_POST['plan']) ? array_filter($_POST['plan']) : array($_POST['plan']);
if(count($storyPlan) > 1)
{
$oldStoryPlan = !empty($oldStory->planTitle) ? array_keys($oldStory->planTitle) : array();
if(!empty(array_diff($storyPlan, $oldStoryPlan)) or !empty(array_diff($oldStoryPlan, $storyPlan)))
$oldStoryPlan = !empty($oldStory->planTitle) ? array_keys($oldStory->planTitle) : array();
$oldPlanDiff = array_diff($storyPlan, $oldStoryPlan);
$storyPlanDiff = array_diff($oldStoryPlan, $storyPlan);
if(!empty($oldPlanDiff) or !empty($storyPlanDiff))
{
dao::$errors[] = $this->lang->story->notice->changePlan;
return false;