Skip to content

Commit 44c91c2

Browse files
authored
Fix warnings on /releases/states.php (#1276)
1 parent 5a1ddef commit 44c91c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/branches.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ function get_branch_release_date($branch): ?DateTime
355355
{
356356
$initial = get_initial_release($branch);
357357

358-
return $initial ? new DateTime($initial['date']) : null;
358+
return isset($initial['date']) ? new DateTime($initial['date']) : null;
359359
}
360360

361361
function get_branch_support_state($branch) {

0 commit comments

Comments
 (0)