From ef29ffd2af0efaff2ac33b16e74f0b7c7675f9d2 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 16 Nov 2022 11:18:22 +0100 Subject: [PATCH] DirectorDeploymentLog: allow missing config --- library/Director/Objects/DirectorDeploymentLog.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/Director/Objects/DirectorDeploymentLog.php b/library/Director/Objects/DirectorDeploymentLog.php index 0794a3c3..e9b07ce2 100644 --- a/library/Director/Objects/DirectorDeploymentLog.php +++ b/library/Director/Objects/DirectorDeploymentLog.php @@ -46,7 +46,11 @@ class DirectorDeploymentLog extends DbObject public function getConfigHexChecksum() { - return bin2hex($this->config_checksum); + $checksum = $this->get('config_checksum'); + if ($checksum === null) { + return null; + } + return bin2hex($checksum); } public function getConfig()