From 640b1b917647491c7df6e9e33be8ede443a728b3 Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Wed, 18 Jan 2023 16:38:16 +0100 Subject: [PATCH 1/2] :pencil2: Added missing use of class Toolbar --- .../Toolbar/Separator/ToolbarSeparatorUIBlockFactory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/application/UI/Base/Component/Toolbar/Separator/ToolbarSeparatorUIBlockFactory.php b/sources/application/UI/Base/Component/Toolbar/Separator/ToolbarSeparatorUIBlockFactory.php index 92dbd466e..eced0c288 100644 --- a/sources/application/UI/Base/Component/Toolbar/Separator/ToolbarSeparatorUIBlockFactory.php +++ b/sources/application/UI/Base/Component/Toolbar/Separator/ToolbarSeparatorUIBlockFactory.php @@ -9,6 +9,7 @@ namespace Combodo\iTop\Application\UI\Base\Component\Toolbar\Separator; use Combodo\iTop\Application\UI\Base\AbstractUIBlockFactory; +use Combodo\iTop\Application\UI\Base\Component\Toolbar\Toolbar; /** * Class ToolbarSeparatorUIBlockFactory From 9dc54d6e4c81c15e7e24b2bacb13cc27c564a0cf Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Wed, 18 Jan 2023 16:39:40 +0100 Subject: [PATCH 2/2] =?UTF-8?q?N=C2=B05901=20-=20Warnings=20in=20Details?= =?UTF-8?q?=20part=20of=20file=20system=20Tab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/Service/FilesInformationUtils.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/datamodels/2.x/itop-files-information/src/Service/FilesInformationUtils.php b/datamodels/2.x/itop-files-information/src/Service/FilesInformationUtils.php index a16ed2f75..33b5d61c3 100644 --- a/datamodels/2.x/itop-files-information/src/Service/FilesInformationUtils.php +++ b/datamodels/2.x/itop-files-information/src/Service/FilesInformationUtils.php @@ -177,7 +177,9 @@ class FilesInformationUtils else { $aStats = @stat($sFile); - $iSize += $aStats['size']; + if (is_array($aStats)) { + $iSize += $aStats['size']; + } } } return $iSize;