Remove error_log, set note to false to avoid a uninitialized var warning

This commit is contained in:
Allen Snook 2018-11-15 13:19:29 -08:00
parent a65ff9e797
commit a60497c9f6
1 changed files with 1 additions and 2 deletions

View File

@ -298,9 +298,8 @@ class WC_Admin_Notes_Woo_Subscriptions_Notes {
foreach ( (array) $bump_thresholds as $bump_threshold ) {
if ( ( $note_days_until_expiration > $bump_threshold ) && ( $days_until_expiration <= $bump_threshold ) ) {
error_log( "note crossed the $bump_threshold days until expiration threshold" );
$note->delete();
unset( $note );
$note = false;
continue;
}
}