From: Sven Schöling Date: Wed, 17 Mar 2010 10:24:32 +0000 (+0100) Subject: 2 defined entfernt. Der Gebruach ist deprecated, und in diesem Fall eh nicht notwendig. X-Git-Tag: release-2.6.1~12^2~1 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f59ed16fa072d31e5d9190d1b1b0b917b7ac39f3;p=kivitendo-erp.git 2 defined entfernt. Der Gebruach ist deprecated, und in diesem Fall eh nicht notwendig. perldoc sagt: Use of defined on aggregates (hashes and arrays) is deprecated. It used to report whether memory for that aggregate has ever been allocated. This behavior may disappear in future versions of Perl. You should instead use a simple test for size: --- diff --git a/SL/Form.pm b/SL/Form.pm index 32ea04d85..ca8d4fc22 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -720,7 +720,7 @@ sub _prepare_html_template { my ($self, $file, $additional_params) = @_; my $language; - if (!defined(%main::myconfig) || !defined($main::myconfig{"countrycode"})) { + if (!%::myconfig || !$::myconfig{"countrycode"}) { $language = $main::language; } else { $language = $main::myconfig{"countrycode"};