defined(%hash) is deprecated

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14495 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2012-11-30 09:03:30 +00:00
parent 7d20dade12
commit 33f1f5e80d

View File

@ -514,7 +514,7 @@ sub tabdb
my $blankok = shift;
if( defined(%::GLOBAL_TAB_HASH) && defined( $::GLOBAL_TAB_HASH{$table}) && defined( $::GLOBAL_TAB_HASH{$table}{$key}) ) {
if( %::GLOBAL_TAB_HASH && defined( $::GLOBAL_TAB_HASH{$table}) && defined( $::GLOBAL_TAB_HASH{$table}{$key}) ) {
if( defined($::GLOBAL_TAB_HASH{$table}{$key}{$field}) ) {
return $::GLOBAL_TAB_HASH{$table}{$key}{$field};
} else {