From ef10904dd4366ce6b6221892e90054011b05ac75 Mon Sep 17 00:00:00 2001 From: Pafnow Date: Mon, 15 Oct 2018 17:10:49 +0700 Subject: [PATCH] Handle file size = 0 in collect file information When the file size is equal to zero, the empty function returns true and the collect answer fails with error "collect type not found" --- b/collect/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b/collect/index.php b/b/collect/index.php index 62ceed9b8b..cd141c9471 100644 --- a/b/collect/index.php +++ b/b/collect/index.php @@ -156,7 +156,7 @@ break; case 'file': - if (!empty($a_values['path']) && !empty($a_values['size'])) { + if (!empty($a_values['path'])) { // update files content $params = [ 'machineid' => $pfAgent->fields['device_id'],