Followup admin/categorie.pl
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Thu, 18 Mar 2010 03:43:52 +0000 (04:43 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Thu, 18 Mar 2010 03:43:52 +0000 (04:43 +0100)
admin/categorie.pl

index 191e704..315076c 100755 (executable)
@@ -219,7 +219,7 @@ sub _get_brief_messaging_prefs {
     PREF: foreach my $option ( @$messaging_options ) {
         my $pref = C4::Members::Messaging::GetMessagingPreferences( { categorycode => $categorycode,
                                                                     message_name       => $option->{'message_name'} } );
-        next unless  @{$pref->{'transports'}};
+        next unless  $pref->{'transports'};
         my $brief_pref = { message_attribute_id => $option->{'message_attribute_id'},
                            message_name => $option->{'message_name'},
                          };