From e5a121f24b77e069e2eb9b88a6cfa119c4d4bf01 Mon Sep 17 00:00:00 2001 From: William Edwards Date: Tue, 23 Jan 2024 16:21:16 +0100 Subject: [PATCH] Add missing return to Comment::export Without this return, RRSet::exportComments returns an array of `null`, which causes PowerDNS to return `Key 'content' not present or not a String`. --- includes/class/Zone.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/class/Zone.php b/includes/class/Zone.php index 79cb237..7f73d81 100644 --- a/includes/class/Zone.php +++ b/includes/class/Zone.php @@ -368,6 +368,8 @@ class Comment { $ret['content'] = $this->content; $ret['account'] = $this->account; $ret['modified_at'] = $this->modified_at; + + return $ret; } }