From 95f563b47ccaa94411608b76c32f387612d97b1a Mon Sep 17 00:00:00 2001 From: cjhardee Date: Fri, 6 Aug 2010 15:31:13 +0000 Subject: [PATCH] Just getting rid of the deprecated use of 'defined' for checking the existance of an array. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6996 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/monitoring/monitorctrl.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/monitoring/monitorctrl.pm b/xCAT-server/lib/xcat/monitoring/monitorctrl.pm index fd532eb2f..4fdcf0023 100644 --- a/xCAT-server/lib/xcat/monitoring/monitorctrl.pm +++ b/xCAT-server/lib/xcat/monitoring/monitorctrl.pm @@ -715,7 +715,7 @@ sub refreshProductList { my $table=xCAT::Table->new("monitoring", -create =>1); if ($table) { my @tmp1=$table->getAllAttribs(('name','nodestatmon')); - if (defined(@tmp1) && (@tmp1 > 0)) { + if (@tmp1 && (@tmp1 > 0)) { foreach(@tmp1) { my $pname=$_->{name};