From b4bfa861b6342809dca14655eb6dc616e4801dbc Mon Sep 17 00:00:00 2001 From: David Durieux Date: Sun, 21 Mar 2021 17:57:47 +0100 Subject: [PATCH] Fix php error when use deploy package check free space greater than. closes #3131 --- inc/deploycheck.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/deploycheck.class.php b/inc/deploycheck.class.php index 1fa0bcda6c..b0bde78756 100644 --- a/inc/deploycheck.class.php +++ b/inc/deploycheck.class.php @@ -329,6 +329,9 @@ function getValues($type, $data, $mode) { foreach ($type_values as $key => $value) { $values[$key] = $value; } + if ($type == 'freespaceGreater' && !is_numeric($values['value'])) { + $values['value'] = 0; + } return $values; }