[Rt-commit] r4106 - in rtir/branches/1.9-EXPERIMENTAL: .
html/RTIR/Elements
ruz at bestpractical.com
ruz at bestpractical.com
Tue Nov 15 23:43:25 EST 2005
Author: ruz
Date: Tue Nov 15 23:43:24 2005
New Revision: 4106
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/States
Log:
r282 at cubic-pc: cubic | 2005-11-16 07:46:08 +0300
r273 at cubic-pc: cubic | 2005-11-16 07:01:53 +0300
* prevent errors
Modified: rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/States
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/States (original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/States Tue Nov 15 23:43:24 2005
@@ -9,8 +9,12 @@
<%INIT>
my @states;
if( $Queue ) {
- push @states, @{ $meta{ $Queue }->{'Active'} } if $Active;
- push @states, @{ $meta{ $Queue }->{'Inactive'} } if $Inactive;
+ unless( $meta{ $Queue } ) {
+ $RT::Logger->error( "Queue '$Queue' has no states" );
+ return ();
+ }
+ push @states, @{ $meta{ $Queue }->{'Active'} || [] } if $Active;
+ push @states, @{ $meta{ $Queue }->{'Inactive'} || [] } if $Inactive;
} else {
foreach ( values %meta ) {
push @states, @{ $_->{'Active'} || [] } if $Active;
More information about the Rt-commit
mailing list