From 1de4c70cec0bd78941958896c6bd5e89c9aa73ac Mon Sep 17 00:00:00 2001 From: xq2005 Date: Fri, 30 Nov 2012 09:10:48 +0000 Subject: [PATCH] defined(@array) is deprecated git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14502 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kit.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/kit.pm b/xCAT-server/lib/xcat/plugins/kit.pm index 7b9b4e972..5210aea8b 100644 --- a/xCAT-server/lib/xcat/plugins/kit.pm +++ b/xCAT-server/lib/xcat/plugins/kit.pm @@ -1139,7 +1139,7 @@ sub rmkit my $kitcompnames; my @kitcomphash = $tabs{kitcomponent}->getAllAttribsWhere( "kitname = '$kitname'", 'kitcompname'); - if (defined(@entries) && (@entries > 0)) { + if (@entries && (@entries > 0)) { if($::VERBOSE){ my %rsp;