summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-04-09 23:49:04 +0200
committerlpsolit%gmail.com <>2009-04-09 23:49:04 +0200
commitcec56973dd19c6b949d549d30d4375b76de50e27 (patch)
tree4fee6486e14a8726ccb6c69660087979e021a206 /Bugzilla
parent1ae4394d6db37e7e39a58824d69271f8506a4e41 (diff)
downloadbugzilla-cec56973dd19c6b949d549d30d4375b76de50e27.tar.gz
bugzilla-cec56973dd19c6b949d549d30d4375b76de50e27.tar.xz
Fix a warning thrown in the web server error log (due to bug 454251)
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Attachment.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm
index 33c761cf1..9748d17f4 100644
--- a/Bugzilla/Attachment.pm
+++ b/Bugzilla/Attachment.pm
@@ -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 {