aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel/Rpmdragora/gui.pm
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-12-05 15:03:46 +0100
committerAngelo Naselli <anaselli@linux.it>2014-12-05 15:03:46 +0100
commit777454f0b9980f90caa518ea24f7eaa991ed6a79 (patch)
treed0dd14963eab83a538774016225bafe516d73af4 /lib/AdminPanel/Rpmdragora/gui.pm
parent74f0d428b87a4247804782343a07854aa8767d15 (diff)
downloadmanatools-777454f0b9980f90caa518ea24f7eaa991ed6a79.tar
manatools-777454f0b9980f90caa518ea24f7eaa991ed6a79.tar.gz
manatools-777454f0b9980f90caa518ea24f7eaa991ed6a79.tar.bz2
manatools-777454f0b9980f90caa518ea24f7eaa991ed6a79.tar.xz
manatools-777454f0b9980f90caa518ea24f7eaa991ed6a79.zip
managed "uninitialized value"
Diffstat (limited to 'lib/AdminPanel/Rpmdragora/gui.pm')
-rw-r--r--lib/AdminPanel/Rpmdragora/gui.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AdminPanel/Rpmdragora/gui.pm b/lib/AdminPanel/Rpmdragora/gui.pm
index 6fe64dc0..926783b9 100644
--- a/lib/AdminPanel/Rpmdragora/gui.pm
+++ b/lib/AdminPanel/Rpmdragora/gui.pm
@@ -194,7 +194,7 @@ sub get_main_text {
my ($medium, $fullname, $name, $summary, $is_update, $update_descr) = @_;
my $txt = get_string_from_keywords($medium, $fullname);
- my $notice = MDK::Common::Func::if_($txt, format_field($loc->N("Notice: ")) . $txt . "\n");
+ my $notice = MDK::Common::Func::if_($txt, format_field($loc->N("Notice: ")) . $txt . "\n") || "";
ensure_utf8($notice);
my $hdr = format_header(join(' - ', $name, $summary)) . "\n";
@@ -203,7 +203,7 @@ sub get_main_text {
my $update = MDK::Common::Func::if_($is_update, # is it an update?
format_field($loc->N("Importance: ")) . format_update_field($update_descr->{importance}) . "\n",
format_field($loc->N("Reason for update: ")) . format_update_field(rpm_description($update_descr->{pre})) . "\n",
- );
+ ) || "";
ensure_utf8($update);
# TODO Too many lines