[Rt-commit] [rtir] 11/19: Defend against undef
Jesse Vincent
jesse at bestpractical.com
Wed Mar 25 00:20:54 EDT 2015
This is an automated email from the git hooks/post-receive script.
jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.
commit 3f9ebcb895095017d8645db5bc357a3a0cac29b4
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Tue Mar 24 16:40:44 2015 -0700
Defend against undef
---
html/RTIR/Elements/QueueSummary | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/html/RTIR/Elements/QueueSummary b/html/RTIR/Elements/QueueSummary
index 4d58e31..1ea8b55 100644
--- a/html/RTIR/Elements/QueueSummary
+++ b/html/RTIR/Elements/QueueSummary
@@ -92,8 +92,8 @@ my $queue_filter =sub {
return undef if !$q->CurrentUserHasRight('ShowTicket');
return undef if exists $unwanted->{$q->Name};
return undef if (defined $m->{'RTIR_ConstituencyFilter'}
- && $q->FirstCustomFieldValue('RTIR Constituency')
- ne $m->{'RTIR_ConstituencyFilter'});
+ && ($q->FirstCustomFieldValue('RTIR Constituency') || '')
+ ne ($m->{'RTIR_ConstituencyFilter'}||''));
return 1;
};
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list