Skip to content

Commit

Permalink
Check if project exists
Browse files Browse the repository at this point in the history
  • Loading branch information
trymebytes committed Nov 23, 2023
1 parent 67a0059 commit c26ab74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/class-wporg-notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,10 @@ public static function get_project_from_original_id( int $original_id ) {
}
$project_id = $original->project_id;
$project = GP::$project->get( $project_id );

if ( ! $project ) {
return false;
}
$main_projects = self::get_main_projects();

// If the parent project is not a main project, get the parent project. We need to do this
Expand Down

0 comments on commit c26ab74

Please sign in to comment.