[Phpsysinfo-subversion] SF.net SVN: phpsysinfo:[235] includes/xml
Brought to you by:
namiltd
From: <jac...@us...> - 2009-06-07 09:29:05
|
Revision: 235 http://phpsysinfo.svn.sourceforge.net/phpsysinfo/?rev=235&view=rev Author: jacky672 Date: 2009-06-07 09:28:53 +0000 (Sun, 07 Jun 2009) Log Message: ----------- Fixed Notice Array to String conversion for scsi and ide Modified Paths: -------------- ChangeLog includes/xml/class.XML.inc.php Modified: ChangeLog =================================================================== --- ChangeLog 2009-06-07 09:08:00 UTC (rev 234) +++ ChangeLog 2009-06-07 09:28:53 UTC (rev 235) @@ -1,5 +1,8 @@ $Id$ +phpSysInfo 3.0 + - [FIX] Fixed Notice Array to String conversion for scsi and ide + phpSysInfo 3.0 RC-7, 2009-06-06 - [ADD] Korean, Danish, Finnish, Asturian, Slovene translation - [ADD] Option to hide disks (partitions) Modified: includes/xml/class.XML.inc.php =================================================================== --- includes/xml/class.XML.inc.php 2009-06-07 09:08:00 UTC (rev 234) +++ includes/xml/class.XML.inc.php 2009-06-07 09:28:53 UTC (rev 235) @@ -185,7 +185,7 @@ $arrBuf = $this->_sysinfo->ide(); if (count($arrBuf)) { foreach ($arrBuf as $strKey=>$arrValue) { - if (trim($arrValue) != '') { + if (count($arrValue)) { $tmp = $ide->addChild('Device'); $tmp->addChild('Name', $strKey.': '.$this->_toUTF8($arrValue['model'])); if (isset($arrValue['capacity'])) { @@ -197,7 +197,7 @@ $arrBuf = $this->_sysinfo->scsi(); if (count($arrBuf)) { foreach ($arrBuf as $strKey=>$arrValue) { - if (trim($arrValue) != '') { + if (count($arrValue)) { $tmp = $scsi->addChild('Device'); if ($strKey >= '0' && $strKey <= '9') { $tmp->addChild('Name', $this->_toUTF8($arrValue['model'])); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |