]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix a warning thrown in the web server error log (due to bug 454251)
authorlpsolit%gmail.com <>
Thu, 9 Apr 2009 21:49:04 +0000 (21:49 +0000)
committerlpsolit%gmail.com <>
Thu, 9 Apr 2009 21:49:04 +0000 (21:49 +0000)
Bugzilla/Attachment.pm

index 33c761cf1581fe33977bf486f668c00535d607d0..9748d17f46bb552a8b953914594e54791a11aca0 100644 (file)
@@ -613,12 +613,13 @@ sub _check_filename {
 sub _check_is_private {
     my ($invocant, $is_private) = @_;
 
+    $is_private = $is_private ? 1 : 0;
     if (((!ref $invocant && $is_private)
          || (ref $invocant && $invocant->isprivate != $is_private))
         && !Bugzilla->user->is_insider) {
         ThrowUserError('user_not_insider');
     }
-    return $is_private ? 1 : 0;
+    return $is_private;
 }
 
 sub _check_is_url {