Commit cec56973 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Fix a warning thrown in the web server error log (due to bug 454251)

parent 1ae4394d
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment