Skip to content

Commit

Permalink
Remove falsy check as gmdate returns a formatted date string
Browse files Browse the repository at this point in the history
  • Loading branch information
donnapep committed Jan 14, 2025
1 parent 958442e commit bbffd35
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions includes/admin/class-sensei-learner-management.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,12 +526,7 @@ public function edit_date_started() {
}

$mysql_date = gmdate( 'Y-m-d H:i:s', $date->getTimestamp() );

if ( false === $mysql_date ) {
exit( '' );
}

$updated = (bool) update_comment_meta( $comment_id, 'start', $mysql_date, $date_started );
$updated = (bool) update_comment_meta( $comment_id, 'start', $mysql_date, $date_started );

/**
* Filter sensei_learners_learner_updated
Expand Down

0 comments on commit bbffd35

Please sign in to comment.