]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1546502 - fix an undefined variable warning
authorDylan William Hardison <dylan@hardison.net>
Tue, 23 Apr 2019 20:16:58 +0000 (16:16 -0400)
committerGitHub <noreply@github.com>
Tue, 23 Apr 2019 20:16:58 +0000 (16:16 -0400)
extensions/TagNewUsers/Extension.pm

index 4e331e1daa655917a7faec0030dfcbc5fce476d4..1a58e042cc4ed13775a1b2ac66f0fbeaa7d4de3f 100644 (file)
@@ -197,7 +197,7 @@ sub _is_new {
       $self->{is_new} = 0;
     }
     else {
-      $self->{is_new} = ($self->comment_count <= COMMENT_COUNT)
+      $self->{is_new} = (( $self->comment_count // 0) <= COMMENT_COUNT)
         || ($self->creation_age <= PROFILE_AGE);
     }
   }