From 4995c1fae7d6c3256f868014ddf96f1caeb30aac Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Wed, 17 Nov 2021 15:39:33 +0000 Subject: [PATCH] ISTWCMS-5128: ensuring that getting plain text field does not have undefined variable error --- src/Service/UwNodeFieldValue.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Service/UwNodeFieldValue.php b/src/Service/UwNodeFieldValue.php index e8c1ebd4..862fe335 100644 --- a/src/Service/UwNodeFieldValue.php +++ b/src/Service/UwNodeFieldValue.php @@ -261,6 +261,8 @@ class UwNodeFieldValue { */ public function getPlainText(Node $node, string $field_name, bool $multiple = FALSE) { + $plain_text = ''; + // If there are no multiple plain text, just return value. // If there are multiple plain text, step through and // get the values. -- GitLab