mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Core update : fix CanUpdateCore result never displayed on server with warning enabled
Was caused by a call to : \Combodo\iTop\FilesInformation\Service\FilesInformationUtils::Scan With path set to ''. Made from : \Combodo\iTop\FilesInformation\Service\FilesInformation::CanUpdateCore
This commit is contained in:
@@ -24,10 +24,16 @@ class FilesInformationUtils
|
||||
*/
|
||||
public static function Scan($sPath = '', $bGetDirSize = true)
|
||||
{
|
||||
$sRealRootPath = utils::AbsolutePath($sPath);
|
||||
$aFiles = scandir($sRealRootPath);
|
||||
$aFileStats = array();
|
||||
|
||||
$sRealRootPath = utils::AbsolutePath($sPath);
|
||||
if (empty($sRealRootPath))
|
||||
{
|
||||
return $aFileStats;
|
||||
}
|
||||
|
||||
$aFiles = scandir($sRealRootPath);
|
||||
|
||||
foreach ($aFiles as $sScanFile)
|
||||
{
|
||||
if ($sScanFile == '..')
|
||||
|
||||
Reference in New Issue
Block a user