Followup admin/categorie.pl
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Thu, 18 Mar 2010 03:43:52 +0000 (04:43 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 21 Dec 2010 08:17:30 +0000 (21:17 +1300)
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>

admin/categorie.pl

index d804fe6..bda7674 100755 (executable)
@@ -239,7 +239,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'},
                          };