defined(@array) is deprecated

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14504 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2012-11-30 09:13:04 +00:00
parent 881d61a68a
commit 715a5251b6

View File

@ -184,7 +184,7 @@ sub rmosdistro
if($all)
{
my @result=$osdistrotab->getAllAttribs('osdistroname');
if(defined(@result) and scalar @result >0)
if(@result and scalar @result >0)
{
foreach(@result)
{