diff --git a/scripts/bug_reminder_mail.php b/scripts/bug_reminder_mail.php index b556e96..0fcc0f3 100644 --- a/scripts/bug_reminder_mail.php +++ b/scripts/bug_reminder_mail.php @@ -69,7 +69,9 @@ $query .= " and bugs.project_id IN ". $t_rem_projects; } } else { - $query .= " and bugs.project_id NOT IN ".$t_rem_projects; + if (!empty( config_get( 'plugin_Reminder_reminder_project_id' ) )) { + $query .= " and bugs.project_id NOT IN ".$t_rem_projects; + } } if ( ON == $t_rem_group1 ) {