@@ -2432,11 +2432,13 @@ public function getReviewStatus(): string
24322432 return self ::ReviewStatusNoSubmitted;
24332433
24342434 $ selection_plan = $ this ->selection_plan ;
2435-
2435+ // submission period data
24362436 $ submission_begin_date = $ selection_plan ->getSubmissionBeginDate ();
24372437 $ submission_end_date = $ selection_plan ->getSubmissionEndDate ();
2438+ // selection period data
24382439 $ selection_begin_date = $ selection_plan ->getSelectionBeginDate ();
24392440 $ selection_end_date = $ selection_plan ->getSelectionEndDate ();
2441+ $ selectionPeriodIsDefined = !is_null ($ selection_begin_date ) & !is_null ($ selection_end_date );
24402442 $ submission_lock_down_presentation_status_date = $ selection_plan ->getSubmissionLockDownPresentationStatusDate ();
24412443
24422444 $ now = new \DateTime ('now ' , new \DateTimeZone ('UTC ' ));
@@ -2483,11 +2485,11 @@ public function getReviewStatus(): string
24832485 $ submission_lock_down_presentation_status_date > $ now ;
24842486
24852487 // if lock down period is enabled then short-circuit everything
2486- if ($ is_lock_down_period || ($ submission_closed && $ selection_open )) {
2488+ if ($ is_lock_down_period || ($ selectionPeriodIsDefined && $ submission_closed && $ selection_open )) {
24872489 return self ::ReviewStatusInReview;
24882490 } else if ($ this ->isPublished ()) {
24892491 return self ::ReviewStatusPublished;
2490- } else if ($ selection_closed ) {
2492+ } else if ($ selectionPeriodIsDefined && $ selection_closed ) {
24912493 return $ submission_accepted ? self ::ReviewStatusAccepted : self ::ReviewStatusRejected;
24922494 }
24932495
0 commit comments