From a46751b036fe1d06f35122296c49543796b58643 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Thu, 11 Dec 2014 15:12:48 +0100 Subject: defualt is empty string not undefined --- lib/AdminPanel/Rpmdragora/open_db.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/AdminPanel/Rpmdragora/open_db.pm b/lib/AdminPanel/Rpmdragora/open_db.pm index b8239d94..e2e6562a 100644 --- a/lib/AdminPanel/Rpmdragora/open_db.pm +++ b/lib/AdminPanel/Rpmdragora/open_db.pm @@ -76,7 +76,7 @@ sub open_rpm_db { $db = new URPM; $db->parse_synthesis("$::env/rpmdb.cz"); } else { - $db = URPM::DB::open($::rpmdragora_options{'rpm-root'}[0]); + $db = URPM::DB::open($::rpmdragora_options{'rpm-root'}[0]||''); } $db or die "Couldn't open RPM DB (" . ($::env ? "$::env/rpmdb.cz" : $::rpmdragora_options{'rpm-root'}[0]) . ")"; } -- cgit v1.2.1