- Updated fr.pm based on changes from Guillaume Filion.
[BackupPC.git] / lib / BackupPC / Lib.pm
index 02177a0..774210b 100644 (file)
@@ -255,6 +255,7 @@ sub ConfigRead
         }
         %{$self->{Conf}} = ( %{$self->{Conf} || {}}, %Conf );
     }
+    return if ( !defined($self->{Conf}{Language}) );
     my $langFile = "$self->{LibDir}/BackupPC/Lang/$self->{Conf}{Language}.pm";
     if ( !defined($ret = do $langFile) && ($! || $@) ) {
        $mesg = "Couldn't open language file $langFile: $!" if ( $! );