Skip to content

Commit

Permalink
Merge pull request #3758 from 10up/fix/site-health-warning
Browse files Browse the repository at this point in the history
Update LastSync.php - Fix Site Health PHP Warning
  • Loading branch information
felipeelia committed Nov 29, 2023
2 parents f243586 + af7029f commit fddeb0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/StatusReport/LastSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function get_groups() : array {
'value' => $value,
];
}
$title = $sync_info['start_date_time'];
$title = $sync_info['start_date_time'] ?? '';
if ( false !== \ElasticPress\Utils\get_indexing_status() ) {
/* translators: last sync title */
$title = sprintf( __( '%s (In Progress)', 'elasticpress' ), $title );
Expand Down

0 comments on commit fddeb0e

Please sign in to comment.